diff --git a/src/N3Lexer.js b/src/N3Lexer.js index 2d89ffb..040004f 100644 --- a/src/N3Lexer.js +++ b/src/N3Lexer.js @@ -323,7 +323,7 @@ export default class N3Lexer { } break; case '|': - // We need at least 2 tokens lookahead to distinguish "|}" and "|" + // We need 2 tokens lookahead to parse "|}" if (input.length < 2) break; // Try to find a quoted triple annotation end