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:
parent
b80cd9cb02
commit
13c47d6c4f
|
@ -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;
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue