Skip to content

Commit

Permalink
Merge pull request #1364 from Carpetsmoker/hl-type
Browse files Browse the repository at this point in the history
Don't add offset to goTypeConstructor.
  • Loading branch information
fatih authored Jul 22, 2017
2 parents 82998ea + dd6e154 commit d5979c9
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 @@ -321,7 +321,7 @@ hi def link goField Identifier

" Structs & Interfaces;
if g:go_highlight_types != 0
syn match goTypeConstructor /\<\w\+{\@=/he=e-1
syn match goTypeConstructor /\<\w\+{\@=/
syn match goTypeDecl /\<type\>/ nextgroup=goTypeName skipwhite skipnl
syn match goTypeName /\w\+/ contained nextgroup=goDeclType skipwhite skipnl
syn match goDeclType /\<\(interface\|struct\)\>/ skipwhite skipnl
Expand Down

0 comments on commit d5979c9

Please sign in to comment.