following occurrences in a file
Groove <name> <comments with spaces>
Groove is the keyword, the <name> can be any single word with any
characters other than "/" and the comment is the rest of the text on
the line after that.
I would like to assign a color to "Groove" (easy) and a color to the
comments, and then either leave the <name> unhighlighted or also
assign a color to it.
I have tried all manner of contains, contained, nextgroup, etc..and I
can't seem to find a way to handle this situation, but I'm new to
this, so maybe I am missing something obvious.
Can anyone help?
This is the last thing I tried:
syn keyword MMAgroove groove nextgroup=MMAid skipwhite
syn match MMAid "[^\s/]+" transparent
contains=MMAgrooveComment
syn match MMAgrooveComment ".*$" contained
--
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:
Post a Comment