Skip to content

Commit

Permalink
Make sure builtins are hightlighted correctly
Browse files Browse the repository at this point in the history
And (again for consistency) change `goMethod` to `goMethodCall` to be consistent with `goFunctionCall`.
  • Loading branch information
Sander van Harmelen committed Oct 7, 2016
1 parent 8faedbe commit 80b0ca2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions syntax/go.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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,goDeclaration
else
syn keyword goDeclaration func
endif
Expand All @@ -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
Expand Down

0 comments on commit 80b0ca2

Please sign in to comment.