Hi,
I am attaching a patch to the runtime files to update the syntax for
the new completion options supported for user defined commands
and for the command modifier <mods>.
- Yegappan
--
--
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].
For more options, visit https://groups.google.com/d/optout.
diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt
index 5584460..19191ca 100644
--- a/runtime/doc/map.txt
+++ b/runtime/doc/map.txt
@@ -1274,6 +1274,7 @@ completion can be enabled:
-complete=mapping mapping name
-complete=menu menus
-complete=option options
+ -complete=packadd optional package |pack-add| names
-complete=shellcmd Shell command
-complete=sign |:sign| suboptions
-complete=syntax syntax file names |'syntax'|
diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim
index a04261a..5c10a06 100644
--- a/runtime/syntax/vim.vim
+++ b/runtime/syntax/vim.vim
@@ -268,7 +268,7 @@ if !exists("g:vimsyn_noerror") &&
!exists("g:vimsyn_nousercmderror")
endif
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 color command
compiler cscope dir environment event expression file file_in_path filetype
function help highlight locale mapping menu option shellcmd sign syntax tag
tag_listfiles var
+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
@@ -418,7 +418,7 @@ syn match vimNotation
"\(\\\|<lt>\)\=<\([scamd]-\)\{0,4}x\=\(f\d\{1,2}\|[^ \t:]\
syn match vimNotation
"\(\\\|<lt>\)\=<\([scam2-4]-\)\{0,4}\(right\|left\|middle\)\(mouse\)\=\(drag\|release\)\=>"
contains=vimBracket
syn match vimNotation
"\(\\\|<lt>\)\=<\(bslash\|plug\|sid\|space\|bar\|nop\|nul\|lt\)>"
contains=vimBracket
syn match vimNotation '\(\\\|<lt>\)\=<C-R>[0-9a-z"%#:.\-=]'he=e-1
contains=vimBracket
-syn match vimNotation
'\(\\\|<lt>\)\=<\%(q-\)\=\(line[12]\|count\|bang\|reg\|args\|f-args\|lt\)>'
contains=vimBracket
+syn match vimNotation
'\(\\\|<lt>\)\=<\%(q-\)\=\(line[12]\|count\|bang\|reg\|args\|mods\|f-args\|f-mods\|lt\)>'
contains=vimBracket
syn match vimNotation
"\(\\\|<lt>\)\=<\([cas]file\|abuf\|amatch\|cword\|cWORD\|client\)>"
contains=vimBracket
syn match vimBracket contained "[\\<>]"
syn case match