summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2024-02-25 04:05:26 +0200
committerGravatar Uko Kokņevičs2024-02-25 04:05:26 +0200
commit29ba785c07169c54e33121d8fdd9d22fc18a20a3 (patch)
tree7354e3ca8cd431bf42e3df15e57d3027a22e55d4
parentAdd C-<home> and C-<end> (diff)
downloades-29ba785c07169c54e33121d8fdd9d22fc18a20a3.tar.gz
es-29ba785c07169c54e33121d8fdd9d22fc18a20a3.tar.xz
es-29ba785c07169c54e33121d8fdd9d22fc18a20a3.zip
Don't do italic, not supported everywhere
-rw-r--r--src/Syntax/zig.zig2
-rw-r--r--src/highlight.zig4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Syntax/zig.zig b/src/Syntax/zig.zig
index 4e82496..11e555d 100644
--- a/src/Syntax/zig.zig
+++ b/src/Syntax/zig.zig
@@ -40,7 +40,7 @@ const keywords1 = [_][]const u8 {
40 40
41const keywords2 = [_][]const u8 { 41const keywords2 = [_][]const u8 {
42 // primitive types 42 // primitive types
43 // TODO: generate all the integer types 43 // TODO: Add regex based matching and check all integers
44 "i8", "u8", "i16", "u16", "i32", "u32", "i64", "u64", "i128", "u128", "isize", "usize", "c_char", 44 "i8", "u8", "i16", "u16", "i32", "u32", "i64", "u64", "i128", "u128", "isize", "usize", "c_char",
45 "c_short", "c_ushort", "c_int", "c_uint", "c_long", "c_ulong", "c_longlong", "c_ulonglong", 45 "c_short", "c_ushort", "c_int", "c_uint", "c_long", "c_ulong", "c_longlong", "c_ulonglong",
46 "c_longdouble", "f16", "f32", "f64", "f80", "f128", "bool", "anyopaque", "void", "noreturn", 46 "c_longdouble", "f16", "f32", "f64", "f80", "f128", "bool", "anyopaque", "void", "noreturn",
diff --git a/src/highlight.zig b/src/highlight.zig
index b6876d6..297a61f 100644
--- a/src/highlight.zig
+++ b/src/highlight.zig
@@ -19,8 +19,8 @@ pub const Highlight = enum {
19 19
20 .normal => "\x1b[;39m", 20 .normal => "\x1b[;39m",
21 21
22 .comment => "\x1b[;2;3;36m", 22 .comment => "\x1b[;2;36m",
23 .comment_ml => "\x1b[;2;3;36m", 23 .comment_ml => "\x1b[;2;36m",
24 .keyword1 => "\x1b[;1;33m", 24 .keyword1 => "\x1b[;1;33m",
25 .keyword2 => "\x1b[;32m", 25 .keyword2 => "\x1b[;32m",
26 .number => "\x1b[;31m", 26 .number => "\x1b[;31m",