Fix code generated for classes starting with "\^"
Before this commit, incorrect regexps were produced for classes starting with "\^". For example, this grammar: start = [\^a] didn't match "a" because the generated regexp inside the parser was /^[^a]/, not /^[\^a]/ as it should be. This commit fixes the issue by escaping "^" in |quoteForRegexpClass|. Fixes GH-125.redux
parent
ff819cc579
commit
1988110a28
Loading…
Reference in New Issue