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 14, 2016
1 parent d9fa1bc commit 3ef1afe
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 3ef1afe

Please sign in to comment.