Use attribute face where appropriate
This commit is contained in:
parent
6190f8ce70
commit
23b28df1b8
|
@ -23,10 +23,11 @@ add-highlighter shared/zig/string_double region '"' (?<!\\)(\\\\)*" fill stri
|
||||||
add-highlighter shared/zig/string_single region "'" (?<!\\)(\\\\)*' fill string
|
add-highlighter shared/zig/string_single region "'" (?<!\\)(\\\\)*' fill string
|
||||||
add-highlighter shared/zig/string_multiline region '\\\\' '$' fill string
|
add-highlighter shared/zig/string_multiline region '\\\\' '$' fill string
|
||||||
|
|
||||||
# storage
|
# attributes
|
||||||
add-highlighter shared/zig/code/ regex '\b(?:const|var|extern|packed|export|pub|noalias|inline|noinline|comptime|callconv|volatile|allowzero|align|linksection|threadlocal)\b' 0:keyword
|
add-highlighter shared/zig/code/ regex '\b(?:const|var|extern|packed|export|pub|noalias|inline|noinline|comptime|callconv|volatile|allowzero|align|linksection|threadlocal)\b' 0:attribute
|
||||||
# srtucture
|
# structures
|
||||||
add-highlighter shared/zig/code/ regex '\b(?:struct|enum|union|error)\b' 0:keyword
|
add-highlighter shared/zig/code/ regex '\b(?:struct|enum|union|error)\b' 0:attribute
|
||||||
|
|
||||||
# statement
|
# statement
|
||||||
add-highlighter shared/zig/code/ regex '\b(?:break|return|continue|asm|defer|errdefer|unreachable|try|catch|async|noasync|await|suspend|resume)\b' 0:keyword
|
add-highlighter shared/zig/code/ regex '\b(?:break|return|continue|asm|defer|errdefer|unreachable|try|catch|async|noasync|await|suspend|resume)\b' 0:keyword
|
||||||
# conditional
|
# conditional
|
||||||
|
|
Loading…
Reference in New Issue
Block a user