From f8863b06774f5f1b556204c46c98a816d8774b0f Mon Sep 17 00:00:00 2001 From: Zachary Romero Date: Thu, 25 May 2017 13:21:42 +0300 Subject: [PATCH] Fix the highlighting error by putting the interface\|struct section inside \( \) to correctly identify word boundries --- syntax/go.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/go.vim b/syntax/go.vim index 8d7560f9a4..83f6e8ffd0 100644 --- a/syntax/go.vim +++ b/syntax/go.vim @@ -324,7 +324,7 @@ if g:go_highlight_types != 0 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 /\/ skipwhite skipnl + syn match goDeclType /\<\(interface\|struct\)\>/ skipwhite skipnl hi def link goReceiverType Type else syn keyword goDeclType struct interface