Skip to content

Commit

Permalink
bugfix #175 : only when lexer does not ignores EOL
Browse files Browse the repository at this point in the history
  • Loading branch information
b3b00 committed May 25, 2020
1 parent 1d4908a commit 8e1f7ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sly/lexer/GenericLexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public LexerResult<IN> Tokenize(ReadOnlyMemory<char> memorySource)
position = ConsumeComment(r.Result, memorySource, position);
}

if (r.IsLineEnding)
if (r.IsLineEnding && !LexerFsm.IgnoreEOL)
{
position = position.Clone();
position.Line++;
Expand Down

0 comments on commit 8e1f7ce

Please sign in to comment.