src/parser.pegjs: Replace "\0" with "\x00"

Fixes the following JSHint error:

  ./src/parser.js: line 2820, col 44, Bad escapement.
This commit is contained in:
David Majda 2011-09-14 10:34:33 +02:00
parent b80cd9cb02
commit 13c47d6c4f
2 changed files with 2 additions and 2 deletions

View file

@ -2817,7 +2817,7 @@ PEG.parser = (function(){
pos = pos1; pos = pos1;
} }
if (result0 !== null) { if (result0 !== null) {
result0 = (function() { return "\0"; })(); result0 = (function() { return "\x00"; })();
} }
if (result0 === null) { if (result0 === null) {
pos = pos0; pos = pos0;

View file

@ -294,7 +294,7 @@ simpleEscapeSequence
} }
zeroEscapeSequence zeroEscapeSequence
= "\\0" !digit { return "\0"; } = "\\0" !digit { return "\x00"; }
hexEscapeSequence hexEscapeSequence
= "\\x" h1:hexDigit h2:hexDigit { = "\\x" h1:hexDigit h2:hexDigit {