Skip to content

Commit

Permalink
Fix goCharacter syntax region to be contained
Browse files Browse the repository at this point in the history
This commit sets the goCharacter syntax region to be contained; otherwise,
single-quotes are highlighted as strings outside of the gotplAction regions.

Fixes #603
  • Loading branch information
moorereason committed Nov 16, 2015
1 parent a98ed53 commit 749599c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/gotexttmpl.vim
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ hi def link goRawString String

" Characters; their contents
syn cluster goCharacterGroup contains=goEscapeOctal,goEscapeC,goEscapeX,goEscapeU,goEscapeBigU
syn region goCharacter start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=@goCharacterGroup
syn region goCharacter contained start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=@goCharacterGroup

hi def link goCharacter Character

Expand Down

0 comments on commit 749599c

Please sign in to comment.