File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,12 @@ detect:
55
66rules :
77 # Reserved words
8- - statement : " \\ b(align|allowzero|and|asm|async|await|break|callconv|catch|comptime|const|continue|defer|else|errdefer|error|export|extern|fn|for|if|inline|noalias|noinline|nosuspend|or|orelse|packed|pub|resume|return|linksection|suspend|switch|test|threadlocal|try|unreachable|usingnamespace|var|volatile|while)\\ b"
8+ - statement : " \\ b(addrspace| align|allowzero|and|asm|async|await|break|callconv|catch|comptime|const|continue|defer|else|errdefer|error|export|extern|fn|for|if|inline|noalias|noinline|nosuspend|or|orelse|packed|pub|resume|return|linksection|suspend|switch|test|threadlocal|try|unreachable|usingnamespace|var|volatile|while)\\ b"
99 # builtin functions
1010 - special : " @[a-zA-Z_]+"
1111 # Primitive Types
12- - type : " \\ b(anyframe|anytype|anyerror|bool|comptime_int|comptime_float|enum|f(16|32|64|128)|isize|noreturn|struct|type|union|usize|void)\\ b"
12+ - type : " \\ b(anyframe|anytype|anyerror|anyopaque| bool|comptime_int|comptime_float|enum|f(16|32|64|80| 128)|i(8|16|32|64|128)| isize|noreturn|opaque| struct|type|union|u(8|16|32|64|128) |usize|void)\\ b"
1313 - type : " \\ b(c_u?(short|int|long(long)?)|c_longdouble|c_void)\\ b"
14- - type : " \\ b((i|u)[0-9]+)\\ b"
1514
1615 # Operators
1716 - symbol.operator : " [-!|=;%.+^*:&?<>~]"
You can’t perform that action at this time.
0 commit comments