summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-03-22 10:50:29 +0100
committerIsaac Freund <ifreund@ifreund.xyz>2020-03-22 10:50:29 +0100
commit23b28df1b8be0ecbf14fdaa8c8f6bbb1fc167f64 (patch)
treef5f6f6e7c5cfd78c91fc2f1fb951ecefe8fe6459
parent6190f8ce70bf863638362a39478e5a41f8c37e53 (diff)
Use attribute face where appropriate
-rw-r--r--rc/filetype/zig.kak9
1 files changed, 5 insertions, 4 deletions
diff --git a/rc/filetype/zig.kak b/rc/filetype/zig.kak
index 998c0f94..8770e848 100644
--- a/rc/filetype/zig.kak
+++ b/rc/filetype/zig.kak
@@ -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