runtime(vim): Update base syntax, fix incorrect function error
Don't match lower-case function names as errors when the qualifier includes a dict/list accessor. This is a less than perfect fix until qualified function call matching is reworked. fixes: #17766 closes: #17780 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
f2290a6823
commit
175662f4f2
@ -345,7 +345,7 @@ syn keyword vimBehaveModel contained mswin xterm
|
||||
|
||||
" Call {{{2
|
||||
" ====
|
||||
syn match vimCall "\<call\=\>" skipwhite nextgroup=@vimFunc
|
||||
syn match vimCall "\<call\=\>" skipwhite nextgroup=vimVar,@vimFunc
|
||||
|
||||
" Debuggreedy {{{2
|
||||
" ===========
|
||||
@ -2127,6 +2127,7 @@ unlet s:interfaces
|
||||
" (following Gautam Iyer's suggestion)
|
||||
" ==========================
|
||||
syn match vimFunc contained "\<\l\w*\ze\s*(" skipwhite nextgroup=vimOperParen contains=vimFuncName
|
||||
syn match vimUserFunc contained "\.\@1<=\l\w*\ze\s*(" skipwhite nextgroup=vimOperParen contains=vimFuncName
|
||||
syn match vimUserFunc contained "\<\%([[:upper:]_]\|\%(\h\w*\.\)\+\h\)\w*\ze\s*(" skipwhite nextgroup=vimOperParen contains=vim9MethodName,vim9Super,vim9This
|
||||
syn match vimUserFunc contained "\<\%(g:\)\=\%(\h\w*#\)\+\h\w*\ze\s*(" skipwhite nextgroup=vimOperParen contains=vimVarScope
|
||||
syn match vimUserFunc contained "\%(\<[sgbwtlav]:\|<[sS][iI][dD]>\)\%(\h\w*\.\)*\h\w*\ze\s*(" skipwhite nextgroup=vimOperParen contains=vimVarScope,vimNotation
|
||||
|
||||
Reference in New Issue
Block a user