1988110a28
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. |
||
---|---|---|
.. | ||
compiler | ||
compiler.js | ||
grammar-error.js | ||
parser.js | ||
peg.js | ||
utils.js |