Use attribute face where appropriate

This commit is contained in:
Isaac Freund 2020-03-22 10:50:29 +01:00
parent 6190f8ce70
commit 23b28df1b8
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -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_multiline region '\\\\' '$' fill string
# storage
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
# srtucture
add-highlighter shared/zig/code/ regex '\b(?:struct|enum|union|error)\b' 0:keyword
# 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:attribute
# structures
add-highlighter shared/zig/code/ regex '\b(?:struct|enum|union|error)\b' 0:attribute
# 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
# conditional