From 406cc59d59d72ff91db099785be434bcca6b7952 Mon Sep 17 00:00:00 2001 From: WhyIsEvery4thYearAlwaysBad Date: Sun, 11 Apr 2021 00:59:55 -0500 Subject: [PATCH] String line coordinates should be stored properly again. --- src/lex.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lex.cpp b/src/lex.cpp index 0815255..e2ec646 100644 --- a/src/lex.cpp +++ b/src/lex.cpp @@ -145,7 +145,6 @@ namespace Lexer { // strings case '\"': { - std::size_t tempcol=iLineColumn,templn=iLineNum; // New lines or carriage returns cannot be in strings. (I don't mean the '\r' or '\n' character.) for (i++, iLineColumn++; i < p_sInStr.length(); i++, iLineColumn++) { if (p_sInStr.at(i)=='\r') { @@ -179,7 +178,7 @@ namespace Lexer { break; } else if (p_sInStr.at(i)=='\"') { - TokenContainer.push_back(Token(tempcol,templn,TokenType::STRING,t_sStrTemp)); + TokenContainer.push_back(Token(iLineNum,iLineColumn,TokenType::STRING,t_sStrTemp)); t_sStrTemp=""; break; }