Skip to content

Commit

Permalink
Found an issue when scanning strings
Browse files Browse the repository at this point in the history
  • Loading branch information
tomheeleynz committed Aug 1, 2023
1 parent f21dcef commit 0bf96b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ArcaneScript/src/ArcaneScript/Scanner/Scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ namespace ArcaneScript
{
while (Peek() != '"' && !IsAtEnd())
{
if (Peek() != '\n') m_Line++;
if (Peek() == '\n')
m_Line++;

Advance();
}

Expand Down

0 comments on commit 0bf96b0

Please sign in to comment.