Skip to content

Commit 458d230

Browse files
authored
Merge pull request #1463 from bhcleek/better-assignment-highlight
teach goVarAssign about all assignment operators
2 parents 09911f9 + 8fe9a24 commit 458d230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/go.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ hi def link goDeclType Keyword
410410

411411
" Variable Assignments
412412
if g:go_highlight_variable_assignments != 0
413-
syn match goVarAssign /\v[_.[:alnum:]]+(,\s*[_.[:alnum:]]+)*\ze(\s*\=)/
413+
syn match goVarAssign /\v[_.[:alnum:]]+(,\s*[_.[:alnum:]]+)*\ze(\s*([-^+|^\/%&]|\*|\<\<|\>\>|\&\^)?\=[^=])/
414414
hi def link goVarAssign Special
415415
endif
416416

0 commit comments

Comments
 (0)