Re: Transparent Highlighting Group
- Nikolai Weibull wrote:
> Sometimes you want to disable the highlighting of a syntax group.Why one cannot use "transparent" option to :syntax command in this case too?
> There are various ways to do this with varying results. Sometimes you
> want the group to be displayed transparently, i.e., taking the color
> of whatever it's contained in. An example is the redirection
> operators of a shell, e.g., Zsh. Sometimes people want them displayed
> as keywords, sometimes they just shouldn't be highlighted at all. The
> thing is, redirection operators can be contained within a string:
> echo "$(<file)"
> It'd be ugly if the < is displayed in black, as it is if you link that
> group to None. I propose that we add a highilighting group called
> Transparent so that anything linked to it will act as if it was
> defined with the "transparent" option to :syntax.
I'm not strong in vim syntax scripts, but I suppose that to link < to
some special highlighting group you would have to make match using :syntax.