diff --git a/syntax/go.vim b/syntax/go.vim index 83f6e8ffd0..187ba67c12 100644 --- a/syntax/go.vim +++ b/syntax/go.vim @@ -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\+{\@=/he=e-1 syn match goTypeDecl /\/ nextgroup=goTypeName skipwhite skipnl syn match goTypeName /\w\+/ contained nextgroup=goDeclType skipwhite skipnl syn match goDeclType /\<\(interface\|struct\)\>/ skipwhite skipnl