pegjs/lib
David Majda 1988110a28 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.
2012-11-21 08:24:08 +01:00
..
compiler Kill the |toSource| method, introduce the |output| option 2012-11-11 18:18:52 +01:00
compiler.js Kill the |toSource| method, introduce the |output| option 2012-11-11 18:18:52 +01:00
grammar-error.js Git repo npmization: Make the repo a npm package 2012-11-10 14:21:14 +01:00
parser.js Kill the |toSource| method, introduce the |output| option 2012-11-11 18:18:52 +01:00
peg.js Git repo npmization: Make the repo a npm package 2012-11-10 14:21:14 +01:00
utils.js Fix code generated for classes starting with "\^" 2012-11-21 08:24:08 +01:00