Use correct disjunction operator in |computeErrorPosition|

Original patch by Wolfgang Kluge:

  6b793b33df
redux
David Majda 13 years ago
parent cb2415a4fd
commit eceda8b5e8

@ -247,7 +247,7 @@ PEG.compiler.emitter = function(ast) {
" if (!seenCR) { line++; }",
" column = 1;",
" seenCR = false;",
" } else if (ch === '\\r' | ch === '\\u2028' || ch === '\\u2029') {",
" } else if (ch === '\\r' || ch === '\\u2028' || ch === '\\u2029') {",
" line++;",
" column = 1;",
" seenCR = true;",

@ -3684,7 +3684,7 @@ PEG.parser = (function(){
if (!seenCR) { line++; }
column = 1;
seenCR = false;
} else if (ch === '\r' | ch === '\u2028' || ch === '\u2029') {
} else if (ch === '\r' || ch === '\u2028' || ch === '\u2029') {
line++;
column = 1;
seenCR = true;

Loading…
Cancel
Save