Skip to content

Commit

Permalink
Add support for highlighting function calls
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
Sander van Harmelen committed Sep 15, 2016
1 parent 7fd92a8 commit 961466f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions syntax/go.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 961466f

Please sign in to comment.