I'm trying to figure out how to highlight specific portions of the syntax.
Take a look at this (taken from the vim documentation):
*Statement any statement
Conditional if, then, else, endif, switch, etc.
Repeat for, do, while, etc.
Label case, default, etc.
Operator "sizeof", "+", "*", etc.
Keyword any other keyword
Exception try, catch, throw
We can do syntax highlighting for the Statement syntax by doing the
following in vimrc:
hi Statement gui=none guifg=Red
That command will apply highlighting to all the minor groups as well
(conditional, repeat, etc.)
Is it possible to apply highlighting to a specific group (conditional,
repeat, label, etc), rather than the major group (statement)?
I tried doing pattern matching but that takes way too much work...
--
View this message in context: http://old.nabble.com/Syntax-Highlighting-Minor-Groups-tp28702384p28702384.html
Sent from the Vim - General mailing list archive at Nabble.com.
--
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