tree-sitter / tree-sitter-css

CSS grammar for Tree-sitter
MIT License
85 stars 34 forks source link

Fix parsing of negative numbers #12

Closed rtsao closed 3 years ago

rtsao commented 3 years ago

Fixes https://github.com/tree-sitter/tree-sitter-css/issues/8 and adds regression test

I've updated the regex to more accurately reflect https://www.w3.org/TR/css-syntax-3/#ident-token-diagram.

rtsao commented 3 years ago

@maxbrunsfeld any blockers for getting this merged?

maxbrunsfeld commented 3 years ago

Thanks!