From c22198664f09b981b99619f0fcd9a58b74ef233b Mon Sep 17 00:00:00 2001 From: Sander van Harmelen Date: Tue, 4 Oct 2016 14:02:06 +0200 Subject: [PATCH] Make sure builtins are hightlighted correctly And (again for consistency) change `goMethod` to `goMethodCall` to be consistent with `goFunctionCall`. --- syntax/go.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/syntax/go.vim b/syntax/go.vim index 6d34192a41..ef785400e7 100644 --- a/syntax/go.vim +++ b/syntax/go.vim @@ -302,7 +302,7 @@ if g:go_highlight_functions != 0 syn match goPointerOperator /\*/ nextgroup=goReceiverType contained skipwhite skipnl syn match goReceiverType /\w\+/ contained syn match goFunction /\w\+/ contained - syn match goFunctionCall /\w\+\ze(/ + syn match goFunctionCall /\w\+\ze(/ contains=GoBuiltins else syn keyword goDeclaration func endif @@ -311,9 +311,9 @@ hi def link goFunctionCall Type " Methods; if g:go_highlight_methods != 0 - syn match goMethod /\.\w\+\ze(/hs=s+1 + syn match goMethodCall /\.\w\+\ze(/hs=s+1 endif -hi def link goMethod Type +hi def link goMethodCall Type " Fields; if g:go_highlight_fields != 0