Thursday, May 19, 2011

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

On 20/05/11 4:16 AM, AMDx64BT wrote:
> I would like to edit the file syntax cpp.vim and include some new extensions to
> highlight. I would like to add these news extension as a vertical list, and not in
> the same line.
>
> The normal way:
> *syn keyword ITK a b c d e*
>
> The way that I would like to get, using a vertical list
> *syn keyword ITK
> a
> b
> c
> d
> e*
>
> Is there any way to add a vertical list of items?

Is line continuation acceptable?

syn keyword ITK
\ a
\ b
\ c
\ d
\ e

Ben.

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