vantreeseba / tree-sitter-haxe

MIT License
26 stars 11 forks source link

Handling string literals escape sequences #19

Closed johhnry closed 1 year ago

johhnry commented 1 year ago

I was trying to put a single quote ' in an interpolated string and this is what happened:

image

From the Haxe documentation, these are the escape sequences allowed in string literals.

Maybe this could be handled similarly as the JS tree-sitter implementation for example?

image