itchyny wrote:
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.

Please try syntax/vim.vim v7.3-26 , available at my website at http://www.drchip.org/astronaut/vim/index.html#SYNTAX_VIM .

The problem: s:Xxxx was permitted (old rules for what was allowed to be a function name), but lower case such as s:xxxx was not. syntax/vim.vim is now updated to use \h instead of \u (ie. head-of-word) to recognize that first letter following the s:.

Regards,
Chip Campbell

--
--
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.


Raspunde prin e-mail lui