Friday, May 28, 2010

Re: Syntax Highlighting Minor Groups

On May 28, 2:52 am, airforceone <airforce...@lavabit.com> wrote:
> And apparently there's no group for the brackets, ++, ;, etc. operators.
> Which means we would have to do this with pattern matching huh?
>

Yes, you'd need to define your own syntax file addition most likely.

The way this stuff all works:

The syntax highlight rules specify a definition of highlight-able
names (a mix matches and regions, defined in terms of regular
expressions, and keywords). Many of these names will be linked to a
set of pre-defined names which you see in the :help, including
Operator, Statement, etc.

Your color scheme or other method of defining highlight rules, will
then apply to these linked names.

But, what all this means is, unless the maker of the syntax script
included a match for the stuff you want to highlight, you will not be
able to apply the highlight unless you define your own syntax rule to
match what you want to apply it to.

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