tree-sitter / tree-sitter-cli

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

Unicode code points are ignored in regexps #2

Closed robrix closed 9 years ago

robrix commented 9 years ago
/[^\u000a]/

There is some overlap with #1 here in that the \ does not get escaped, and the C compiler complains about the unicode character referenced being a control character. Correcting for this (by prepending another backslash to escape it for the C compiler but leave it present for the regexp handling), the code point is apparently ignored—it won’t match a string because of the a.

maxbrunsfeld commented 9 years ago

I think this is fixed in 0.0.33.

robrix commented 9 years ago

It is! :bow: