summaryrefslogtreecommitdiffstats
path: root/syntax/go.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2018-02-06 11:15:01 +0800
committerAdam Stankiewicz <sheerun@sher.pl>2018-02-06 11:15:01 +0800
commit18efda3933a867dd21df483bbfeae52231783d46 (patch)
treea2af3be10f2140314656d1c2e0e53ef1a1c1b6c6 /syntax/go.vim
parentbfc6ed9fbafc0758aaab228df70a3656368d8497 (diff)
downloadvim-polyglot-18efda3933a867dd21df483bbfeae52231783d46.tar.gz
vim-polyglot-18efda3933a867dd21df483bbfeae52231783d46.zip
Update
Diffstat (limited to 'syntax/go.vim')
-rw-r--r--syntax/go.vim14
1 files changed, 6 insertions, 8 deletions
diff --git a/syntax/go.vim b/syntax/go.vim
index 4d5819ec..0705c3ee 100644
--- a/syntax/go.vim
+++ b/syntax/go.vim
@@ -44,8 +44,8 @@ if !exists("g:go_highlight_function_arguments")
let g:go_highlight_function_arguments = 0
endif
-if !exists("g:go_highlight_methods")
- let g:go_highlight_methods = 0
+if !exists("g:go_highlight_function_calls")
+ let g:go_highlight_function_calls = 0
endif
if !exists("g:go_highlight_fields")
@@ -362,7 +362,6 @@ hi def link goOperator Operator
" Functions;
if g:go_highlight_functions isnot 0 || g:go_highlight_function_arguments isnot 0
- syn match goFunctionCall /\w\+\ze(/ contains=goBuiltins,goDeclaration
syn match goDeclaration /\<func\>/ nextgroup=goReceiver,goFunction,goSimpleArguments skipwhite skipnl
syn match goReceiverVar /\w\+\ze\s\+\(\w\|\*\)/ nextgroup=goPointerOperator,goReceiverType skipwhite skipnl contained
syn match goPointerOperator /\*/ nextgroup=goReceiverType contained skipwhite skipnl
@@ -381,13 +380,12 @@ else
syn keyword goDeclaration func
endif
hi def link goFunction Function
-hi def link goFunctionCall Type
-" Methods;
-if g:go_highlight_methods != 0
- syn match goMethodCall /\.\w\+\ze(/hs=s+1
+" Function calls;
+if g:go_highlight_function_calls != 0
+ syn match goFunctionCall /\w\+\ze(/ contains=goBuiltins,goDeclaration
endif
-hi def link goMethodCall Type
+hi def link goFunctionCall Type
" Fields;
if g:go_highlight_fields != 0