mirror of
https://github.com/vim/vim.git
synced 2026-04-29 07:01:09 +02:00
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
@@ -1,5 +1,5 @@
|
||||
" Vim function calls
|
||||
" VIM_SETUP highlight link vimUserFunc Todo
|
||||
" VIM_TEST_SETUP highlight link vimUserFunc Todo
|
||||
|
||||
|
||||
call abs(42)
|
||||
@@ -263,3 +263,13 @@ call v:substitute.substitute()
|
||||
call substitute#substitute()
|
||||
call g:substitute#substitute()
|
||||
|
||||
|
||||
" chained function calls
|
||||
|
||||
call module.foo().bar()
|
||||
|
||||
|
||||
" Issue #17766 (valid function call highlighted as error)
|
||||

|
||||
call module[0].foo()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user