Skip to content

Commit

Permalink
Do not reparse whitespace after newline.
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenVerborgh committed Nov 21, 2019
1 parent 5531b09 commit 6b8617d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/N3Lexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default class N3Lexer {
this._line++;
}
// Skip whitespace on current line
if (whiteSpaceMatch = this._whitespace.exec(input))
if (!whiteSpaceMatch && (whiteSpaceMatch = this._whitespace.exec(input)))
input = input.substr(whiteSpaceMatch[0].length, input.length);

// Stop for now if we're at the end
Expand Down

0 comments on commit 6b8617d

Please sign in to comment.