Loading ...
Sorry, an error occurred while loading the content.
 

Re: Transparent Highlighting Group

Expand Messages
  • Илья
    ... Why one cannot use transparent option to :syntax command in this case too? I m not strong in vim syntax scripts, but I suppose that to link
    Message 1 of 4 , Feb 6, 2006
      Nikolai Weibull wrote:
      > Sometimes you want to disable the highlighting of a syntax group.
      > 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.
      >
      > nikolai
      Why one cannot use "transparent" option to :syntax command in this case too?

      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.
    Your message has been successfully submitted and would be delivered to recipients shortly.