tree-sitter-css icon indicating copy to clipboard operation
tree-sitter-css copied to clipboard

feature: Support escape charater

Open Huliiiiii opened this issue 1 year ago • 0 comments

Did you check the tree-sitter docs?

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

Huliiiiii avatar Sep 21 '24 07:09 Huliiiiii