Skip to content

Commit a6d71c5

Browse files
committed
link the zigBuiltinFn group to Function instead of Statement by default
Previously builtin functions were the only thing mapped to "Statement". Now, some control flow keywords are mapped to "Statement", so builtin functions are instead mapped to the more reasonable "Function" group. I believe that "Statement" was previously picked to ensure that builtin functions get a color that would stand out and be unique. Function may not get an equally prominent color but still be unique (usually). Depending on how this affects various colorschemes, it may also make sense to map builtin functions to a different group like "Special".
1 parent 67ad826 commit a6d71c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/zig.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ highlight default link zigHexNumber zigNumber
6666
highlight default link zigOctNumber zigNumber
6767
highlight default link zigBinNumber zigNumber
6868

69-
highlight default link zigBuiltinFn Statement
69+
highlight default link zigBuiltinFn Function
7070
highlight default link zigKeyword Keyword
7171
highlight default link zigType Type
7272
highlight default link zigCommentLine Comment

0 commit comments

Comments
 (0)