From c0f0d56975f462af5b5f3ab80a842283498bffa4 Mon Sep 17 00:00:00 2001 From: David Majda Date: Mon, 7 Jun 2010 16:06:50 +0200 Subject: [PATCH] Fix incorrect comment --- lib/compiler.js | 9 +++------ lib/metagrammar.js | 9 +++------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/lib/compiler.js b/lib/compiler.js index 1aab955..f3d5b32 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -1007,22 +1007,19 @@ PEG.Compiler = { " *", " * - |result !== null|", " * - |pos === input.length|", - " * - |rightmostMatchFailuresExpected.length| may or may not contain", - " * something", + " * - |rightmostMatchFailuresExpected| may or may not contain something", " *", " * 2. The parser successfully parsed only a part of the input.", " *", " * - |result !== null|", " * - |pos < input.length|", - " * - |rightmostMatchFailuresExpected.length| may or may not contain", - " * something", + " * - |rightmostMatchFailuresExpected| may or may not contain something", " *", " * 3. The parser did not successfully parse any part of the input.", " *", " * - |result === null|", " * - |pos === 0|", - " * - |rightmostMatchFailuresExpected.length| contains at least one", - " * failure", + " * - |rightmostMatchFailuresExpected| contains at least one failure", " *", " * All code following this comment (including called functions) must", " * handle these states.", diff --git a/lib/metagrammar.js b/lib/metagrammar.js index 57c586c..faf04c3 100644 --- a/lib/metagrammar.js +++ b/lib/metagrammar.js @@ -3401,22 +3401,19 @@ PEG.grammarParser = (function(){ * * - |result !== null| * - |pos === input.length| - * - |rightmostMatchFailuresExpected.length| may or may not contain - * something + * - |rightmostMatchFailuresExpected| may or may not contain something * * 2. The parser successfully parsed only a part of the input. * * - |result !== null| * - |pos < input.length| - * - |rightmostMatchFailuresExpected.length| may or may not contain - * something + * - |rightmostMatchFailuresExpected| may or may not contain something * * 3. The parser did not successfully parse any part of the input. * * - |result === null| * - |pos === 0| - * - |rightmostMatchFailuresExpected.length| contains at least one - * failure + * - |rightmostMatchFailuresExpected| contains at least one failure * * All code following this comment (including called functions) must * handle these states.