From 9fa7301aec4141f56075b0965d3d3641053e985a Mon Sep 17 00:00:00 2001 From: David Majda Date: Tue, 3 Dec 2013 10:53:47 +0100 Subject: [PATCH] Regenerate src/parser.js Forgot to do it in f8b5e04bba314275d0821bc5b33fcc6420a4dbb2. --- lib/parser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/parser.js b/lib/parser.js index afa58c7..a0b4d2a 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -260,9 +260,10 @@ module.exports = (function() { peg$c97 = { type: "literal", value: "-", description: "\"-\"" }, peg$c98 = function(begin, end) { if (begin.data.charCodeAt(0) > end.data.charCodeAt(0)) { - throw new this.SyntaxError( + error( "Invalid character range: " + begin.rawText + "-" + end.rawText + "." ); + return; } return {