Skip to content

Commit

Permalink
Properly Handle Comments With No Leading Space.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuart Haidon committed Jul 22, 2014
1 parent 027f44b commit 3caa1a1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Pdoxcl2Sharp/ParadoxParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,13 @@ private LexerToken GetNextToken()
return SetCurrentToken(temp);
}

if (currentToken == LexerToken.Comment)
{
while((currentChar = ReadNext()) != '\n' && !eof)
;
SetCurrentToken(currentChar);
}

while (IsSpace(currentChar = ReadNext()) && !eof)
;

Expand Down

0 comments on commit 3caa1a1

Please sign in to comment.