runtime(vim): accept dot in completionList for Vim9 syntax (#13832)
Commit:
https://github.com/vim/vim/commit/ceed36873e922df9acfeabf65184fcf2b5ab1cb3
Author: Maxim Kim <[email protected]>
Date: Tue Jan 9 05:42:02 2024 +1100
runtime(vim): accept dot in completionList for Vim9 syntax
(https://github.com/vim/vim/issues/13832)
if you have autoloaded command complete function in vim9script, it
shouldn't be highlighted as Error:
```
import autoload "share.vim"
command! -range=% -nargs=? -complete=custom,share.Complete Share
share.Paste(<q-args>, <line1>, <line2>)
```
`share.Complete` is a valid complete function.
Signed-off-by: Maxim Kim <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim
index edfef438c..165a80959 100644
--- a/runtime/syntax/vim.vim
+++ b/runtime/syntax/vim.vim
@@ -316,7 +316,7 @@ syn case ignore
syn keyword vimUserAttrbKey contained bar ban[g] cou[nt] ra[nge]
com[plete] n[args] re[gister]
syn keyword vimUserAttrbCmplt contained augroup buffer behave color
command compiler cscope dir environment event expression file file_in_path
filetype function help highlight history locale mapping menu option packadd
shellcmd sign syntax syntime tag tag_listfiles user var
syn keyword vimUserAttrbCmplt contained custom customlist
nextgroup=vimUserAttrbCmpltFunc,vimUserCmdError
-syn match vimUserAttrbCmpltFunc contained
",\%([sS]:\|<[sS][iI][dD]>\)\=\%(\h\w*\%(#\h\w*\)\+\|\h\w*\)"hs=s+1
nextgroup=vimUserCmdError
+syn match vimUserAttrbCmpltFunc contained
",\%([sS]:\|<[sS][iI][dD]>\)\=\%(\h\w*\%([.#]\h\w*\)\+\|\h\w*\)"hs=s+1
nextgroup=vimUserCmdError
syn case match
syn match vimUserAttrbCmplt contained "custom,\u\w*"
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1rMucU-0025AS-RX%40256bit.org.