tree-sitter / tree-sitter-css

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

Tags and pseudo-elements are indistinguishable #11

Closed chbk closed 1 year ago

chbk commented 4 years ago

There is no way to differentiate a tag from a pseudo-element. Consider:

tag::element {}

element is pseudo_element_selector > tag_name tag is also pseudo_element_selector > tag_name

amaanq commented 1 year ago

you can with queries