antlr / grammars-v4

Grammars written for ANTLR v4; expectation that the grammars are free of actions.
MIT License
10.2k stars 3.71k forks source link

New CSS grammar? #3585

Open ris58h opened 1 year ago

ris58h commented 1 year ago

We have a css3 grammar but it misses some features that were already adopted by browser. For example nested calc(). It's not in CSS3 specification but it's supported by all popular browsers for at least 5 years.

Should we have a new generic CSS grammar that contains such unspecified/draft features? Similar to JavaScript grammar that doesn't 100% correlate with ECMAScript specifications.

ris58h commented 1 year ago

Or we could just rename css3 grammar to css grammar.