pegjs/lib
David Majda 75cedcb7d8 Harmonize found string escaping with expectation escaping
Change how found strings are escaped when building syntax error
messages:

  * Do not escape non-ASCII characters (U+0100-U+FFFF). They are
    typically more readable in their raw form.

  * Escape DEL (U+007F). It is a control character.

  * Escape NUL (U+0000) as "\0", not "\x00".

  * Do not use less known shortcut escape sequences ("\b", "\f"), only the
    well-known ones ("\0", "\t", "\n", "\r").

These changes mirror expectation escaping changes done in
4fe682794d.

Part of work on #428.
2016-06-10 15:36:23 +02:00
..
compiler Harmonize found string escaping with expectation escaping 2016-06-10 15:36:23 +02:00
utils Remove trailing commas in object literals 2015-08-21 16:02:13 +02:00
.eslintrc.json ESLint: Set environments better 2016-01-29 14:50:38 +01:00
compiler.js Rename the "PEG" variable to "peg" 2016-05-04 12:37:13 +02:00
grammar-error.js Merge pull request #347 from mbaumgartl/errorstack 2015-07-03 13:05:41 +02:00
parser.js Harmonize found string escaping with expectation escaping 2016-06-10 15:36:23 +02:00
peg.js Rename the "buildParser" function to "generate" 2016-05-04 14:01:14 +02:00