pegjs/lib/compiler/passes
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
..
generate-bytecode.js Improve expression descriptions in error messages 2016-06-10 10:56:59 +02:00
generate-js.js Harmonize found string escaping with expectation escaping 2016-06-10 15:36:23 +02:00
remove-proxy-rules.js Convert PEG.js code to strict mode 2015-06-12 17:34:59 -07:00
report-infinite-loops.js Report left recursion and infinite loops only as "possible" 2015-09-11 14:58:53 +02:00
report-left-recursion.js Report full rule chain in recursive rule errors 2015-09-11 15:09:42 +02:00
report-missing-rules.js Convert PEG.js code to strict mode 2015-06-12 17:34:59 -07:00