On Sun, Dec 17, 2017 at 9:14 PM, Tim Chase <vim@tim.thechases.com> wrote:
> On 2017-12-17 19:16, Jorge Almeida wrote:
>> Just a detail: is it possible to enumerate the keywords in a
>> separate declaration, to improve maintainability? (The actual list
>> is more extense). I'm thinking of something similar to:
>>
>> syntax keyword Foo open close mount umount
>>
> syn match jaKeyword /\<c\%(umount\|mount\|open\|close\)/hs=s+1
> hi def link jaKeyword Identifier
>
> which simplifies the syntax a bit.
>
OK, thanks. As it stands now it does the job.
Syntax highlighting is a great feature. Pity that it's so difficult to learn.
Cheers
Jorge
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sunday, December 17, 2017
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment