Skip to content

Commit

Permalink
probably closes #1130
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilBeaver committed Nov 30, 2021
1 parent 29ffa37 commit d6b52f6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/OneScript.Language/LexicalAnalysis/SourceCodeIterator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,8 @@ public bool SkipSpaces()

public string ReadToLineEnd()
{
while (MoveNext())
while (_currentSymbol != '\n' && MoveNext())
{
if (_currentSymbol == '\n')
break;
}

var res = GetContents();
Expand Down

0 comments on commit d6b52f6

Please sign in to comment.