Skip to content

Commit

Permalink
Merge pull request #1301 from zkry/highlight-interface-struct-fix
Browse files Browse the repository at this point in the history
Fix Issue #1283 Resolve highlighting error by surrounding expression in \(\)
  • Loading branch information
fatih authored May 27, 2017
2 parents 403b9bb + f8863b0 commit 66e3d34
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 66e3d34

Please sign in to comment.