vim syntax file misses some valid -complete= options

15 views
Skip to first unread message

Ivan Krasilnikov

unread,
Mar 26, 2012, 12:00:14 PM3/26/12
to vim...@googlegroups.com, Charles.E...@nasa.gov
I've found that vim syntax file (runtime/syntax/vim.vim) doesn't know
about some options of :command -complete=.
For example, it highlights "color" in the line below as an error:
command -nargs=1 -complete=color ...

Please consider updating the list of keywords in it on line 206 to:

augroup buffer color command compiler cscope dir environment event
expression file file_in_path filetype function help highlight locale
mapping menu option shellcmd sign something syntax tag tag_listfiles
var

(new keywords here are from help :command-completion)

Charles Campbell

unread,
Mar 26, 2012, 1:27:33 PM3/26/12
to vim...@googlegroups.com
They're new all right -- they don't appear in vim 7.3's distribution,
but are due to updates/patches/etc.

You'll find the latest syntax/vim.vim on my website under:
http://www.drchip.org/astronaut/vim/index.html#vimlinks_syntax

Regards,
Chip Campbell

Thilo Six

unread,
Mar 26, 2012, 2:06:29 PM3/26/12
to vim...@vim.org
Hello Charles,


Excerpt from Charles Campbell:

The line 'syn keyword vimUserAttrbCmplt contained....' is contained twice.
After checking i think the first one is obsolet.

>
> Regards,
> Chip Campbell
>

--
Regards,
Thilo

4096R/0xC70B1A8F
721B 1BA0 095C 1ABA 3FC6 7C18 89A4 A2A0 C70B 1A8F


Charles Campbell

unread,
Mar 26, 2012, 2:56:02 PM3/26/12
to vim...@googlegroups.com
Thilo Six wrote:
> Hello Charles,
>
>
> Excerpt from Charles Campbell:
>
>
>> Ivan Krasilnikov wrote:
>>
>>> I've found that vim syntax file (runtime/syntax/vim.vim) doesn't know
>>> about some options of :command -complete=.
>>> For example, it highlights "color" in the line below as an error:
>>> command -nargs=1 -complete=color ...
>>>
>>> Please consider updating the list of keywords in it on line 206 to:
>>>
>>> augroup buffer color command compiler cscope dir environment event
>>> expression file file_in_path filetype function help highlight locale
>>> mapping menu option shellcmd sign something syntax tag tag_listfiles
>>> var
>>>
>>> (new keywords here are from help :command-completion)
>>>
>>>
>> They're new all right -- they don't appear in vim 7.3's distribution,
>> but are due to updates/patches/etc.
>>
>> You'll find the latest syntax/vim.vim on my website under:
>> http://www.drchip.org/astronaut/vim/index.html#vimlinks_syntax
>>
> The line 'syn keyword vimUserAttrbCmplt contained....' is contained twice.
> After checking i think the first one is obsolet.
>
I agree - v7.3-15 is now released with this fixed.

Regards,
Chip Campbell

Thilo Six

unread,
Mar 26, 2012, 4:06:05 PM3/26/12
to vim...@vim.org
Hello Charles,


Excerpt from Charles Campbell:

-- <snip> --


> I agree - v7.3-15 is now released with this fixed.

Thanks.

Reply all
Reply to author
Forward
0 new messages