Sunday, May 22, 2011

Re: add items to a syntax file as a vertical list?

Thilo Six wrote the following on 22.05.2011 12:11

-- <snip> --

sorry hit send to early.

>> Is line continuation acceptable?
>>
>> syn keyword ITK
>> \ a
>> \ b
>> \ c
>> \ d
>> \ e
>>
>> Ben.
>
> I have learned when one uses line continuation in there one has to make sure
> 'cpo' is set correct. That is without 'C'.
>
>
> ,----[ see e.g. runtime/filetype.vim ]--------
>
> " Line continuation is used here, remove 'C' from 'cpoptions'
> let s:cpo_save = &cpo
> set cpo&vim
> .
> .
> .
> " Restore 'cpoptions'
> let &cpo = s:cpo_save
> unlet s:cpo_save
> `----------------------------------------------

Which 'runtime/syntax/cpp.vim' currently does not.

>
>
> regards


--
bye Thilo

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


--
You received this message from the "vim_use" 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

No comments: