lexical analyzer that can tell you if a piece of code is CSS or is not CSS. So how do you build tooling, transpiilers, etc on top of that if you can't even tell what is or isn't CSS?
What if I take PostCSS and make it strictly parse only valid CSS?
you just use existing parser and accept whatever it accepts
Why do you need to know if it's CSS or not? A piece of code can be valid in multiple languages
Обсуждают сегодня