pegjs/lib
David Majda 4fe682794d Improve expression descriptions in error messages
Before this commit, descriptions of literals used in error messages were
built by applying JavaScript string escaping to their values, making the
descriptions look like JavaScript strings. Descriptions of character
classes were built using their raw text. These approaches were mutually
inconsistent and lead to descriptions which were over-escaped and not
necessarily human-friendly (in case of literals) or coupled with details
of the grammar (in case of character classes).

This commit changes description building code in both cases and unifies
it. The intent is to generate human-friendly descriptions of matched
expressions which are clean, unambiguous, and which don't escape too
many characters, while handling special characters such as newlines
well.

Fixes #127.
2016-06-10 10:56:59 +02:00
..
compiler Improve expression descriptions in error messages 2016-06-10 10:56:59 +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
parser.js Improve expression descriptions in error messages 2016-06-10 10:56:59 +02:00
peg.js Rename the "buildParser" function to "generate" 2016-05-04 14:01:14 +02:00