diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Syntax/zig.zig | 2 | ||||
| -rw-r--r-- | src/highlight.zig | 4 |
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 | ||
| 41 | const keywords2 = [_][]const u8 { | 41 | const 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", |