Skip to content

Commit ac4a975

Browse files
authored
Merge pull request #1049 from nhooyr/syntax-fix
goPredefinedIdentifiers should link to goBoolean by default
2 parents d9fa1bc + 451f8a0 commit ac4a975

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntax/go.vim

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ hi def link goComplexes Type
127127
" Predefined functions and values
128128
syn match goBuiltins /\<\v(append|cap|close|complex|copy|delete|imag|len)\ze\(/
129129
syn match goBuiltins /\<\v(make|new|panic|print|println|real|recover)\ze\(/
130-
syn keyword goPredefinedIdentifiers nil iota
131130
syn keyword goBoolean true false
131+
syn keyword goPredefinedIdentifiers nil iota
132132

133133
hi def link goBuiltins Keyword
134-
hi def link goPredefinedIdentifiers Identifier
135134
hi def link goBoolean Boolean
135+
hi def link goPredefinedIdentifiers goBoolean
136136

137137
" Comments; their contents
138138
syn keyword goTodo contained TODO FIXME XXX BUG

0 commit comments

Comments
 (0)