Hi list. There is a problem in vim.vim for |command-completion-customlist|. --------- command! -nargs=+ -complete=customlist,s:xxxx X call s:x(<q-args>) --------- The above example is looks like: https://f.cloud.github.com/assets/375258/752414/fb5dee78-e543-11e2-8fcd-b9ea89846ad6.png
Expected: https://f.cloud.github.com/assets/375258/752415/ff719bc2-e543-11e2-97cd-f552f0139768.png While using a script function for custom completion is allowed (not documented; but can be executed as we expect), the syntax-group vimUserAttrbCmpltFunc does not. The `s:xxxx` is colored by vimUserCmdError. A patch is attached. Thanks. - Ken Hamada -- -- 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/groups/opt_out.
diff -r 99797d166c1f runtime/syntax/vim.vim --- a/runtime/syntax/vim.vim Thu Jul 04 22:50:40 2013 +0200 +++ b/runtime/syntax/vim.vim Fri Jul 05 15:50:29 2013 +0900 @@ -205,7 +205,7 @@ 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 custom customlist nextgroup=vimUserAttrbCmpltFunc,vimUserCmdError -syn match vimUserAttrbCmpltFunc contained ",\%([sS]:\|<[sS][iI][dD]>\)\=\%(\h\w*\%(#\u\w*\)\+\|\u\w*\)"hs=s+1 nextgroup=vimUserCmdError +syn match vimUserAttrbCmpltFunc contained ",\%([sS]:\|<[sS][iI][dD]>\)\=\%(\h\w*\%(#\a\w*\)\+\|\a\w*\)"hs=s+1 nextgroup=vimUserCmdError syn case match syn match vimUserAttrbCmplt contained "custom,\u\w*"
