tree-sitter / tree-sitter-cli

CLI tool for creating and testing tree-sitter parsers
MIT License
45 stars 15 forks source link

Regexp characters are not escaped for insertion into string #1

Closed robrix closed 9 years ago

robrix commented 9 years ago

e.g.:

/"\{\}"/
  1. This does not get escaped correctly, so the "s both end the string.
  2. After correcting for that, \ does not get escaped correctly, so the compiler complains about the unknown escape sequence \{.
maxbrunsfeld commented 9 years ago

Whoops! I think this is fixed in 0.0.32.

robrix commented 9 years ago

It is indeed! :bow: