tree-sitter-css
tree-sitter-css copied to clipboard
feature: Support escape charater
Did you check the tree-sitter docs?
- [X] I have read all the tree-sitter docs if it relates to using the parser
Is your feature request related to a problem? Please describe.
The current Tree-sitter CSS grammar does not handle escaped characters in CSS strings, selectors, or identifiers as expected.
Describe the solution you'd like
↓ /* Escape charater for class name */
.hover\:bg-blue-600::before {
content: "\f123"; /* Unicode character escaped */
}
Tree-sitter CSS grammar should support parsing of escaped characters in all valid CSS contexts, including but not limited to:
- String literals
- Selectors
Describe alternatives you've considered
n/a
Additional context
No response