From 961466fb234fdbe82cf8a09bcaba21199f33ea5d Mon Sep 17 00:00:00 2001 From: Sander van Harmelen Date: Wed, 14 Sep 2016 10:14:18 +0200 Subject: [PATCH] Add support for highlighting function calls `g:go_highlight_methods` highlights method calls, but function calls are not highlighted is the same way. So this PR adds the same highlighting for function calls as well. --- syntax/go.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syntax/go.vim b/syntax/go.vim index e7e61ff320..6d34192a41 100644 --- a/syntax/go.vim +++ b/syntax/go.vim @@ -302,10 +302,12 @@ 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(/ else syn keyword goDeclaration func endif hi def link goFunction Function +hi def link goFunctionCall Type " Methods; if g:go_highlight_methods != 0