Skip to content

Commit a36f6fa

Browse files
committed
Merge pull request #611 from cespare/template-syntax-fix-1
Fix template variable highlighting
2 parents d2fcab3 + 3473bd5 commit a36f6fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/gotexttmpl.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ hi def link goImaginary Number
6565
syn cluster gotplLiteral contains=goString,goRawString,goCharacter,@goInt,goFloat,goImaginary
6666
syn keyword gotplControl contained if else end range with template
6767
syn keyword gotplFunctions contained and html index js len not or print printf println urlquery eq ne lt le gt ge
68-
syn match gotplVariable contained /\$[^ ]*\>/
68+
syn match gotplVariable contained /\$[a-zA-Z0-9_]*\>/
6969
syn match goTplIdentifier contained /\.[^\s}]*\>/
7070

7171
hi def link gotplControl Keyword

0 commit comments

Comments
 (0)