Skip to content

Commit

Permalink
Fix the highlighting error by putting the interface\|struct section i…
Browse files Browse the repository at this point in the history
…nside \( \) to correctly identify word boundries
  • Loading branch information
Zachary Romero committed May 25, 2017
1 parent 403b9bb commit f8863b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/go.vim
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ if g:go_highlight_types != 0
syn match goTypeConstructor /\<\w\+{/he=e-1
syn match goTypeDecl /\<type\>/ nextgroup=goTypeName skipwhite skipnl
syn match goTypeName /\w\+/ contained nextgroup=goDeclType skipwhite skipnl
syn match goDeclType /\<interface\|struct\>/ skipwhite skipnl
syn match goDeclType /\<\(interface\|struct\)\>/ skipwhite skipnl
hi def link goReceiverType Type
else
syn keyword goDeclType struct interface
Expand Down

0 comments on commit f8863b0

Please sign in to comment.