Highlight at-rules #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patch-2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added missing at-rules. Feel free to reorganize them as you wish.
These don't seem to actually be tokens that the parser produces, so this probably doesn't do what you think it does.
You are right, I see that separate statements would need to be created for each of those cases. Would it be possible to add
AtRule { AtKeyword commaSep<query> (";" | Block) }to eitherdefinitionKeywordorcontrolKeywordso all at-rules can have the same color?What part of the rule are you trying to style?
Its name together with '@' character. Currently it's like that:

@layer, @font-face, @container, @counter-style, @property & @page are marked as keywords.
And they are keywords, so that seems a reasonable tag to use here?
They are, but
from,to,selector,all,screen,printare also marked as keyword. Changing color of keyword to yellow in my example, would affect more than just at-rules.Ah, I see what you mean. Does attached patch, which tags all @ keywords as
definitionKeyword, help for you?That's perfect. Thank you very much.
I've tagged @lezer/css 1.0.1
Pull request closed