From 593c154c2d36b39206f76492bcdd3f88f589013c Mon Sep 17 00:00:00 2001 From: WhyIsEvery4thYearAlwaysBad Date: Sun, 11 Apr 2021 01:03:25 -0500 Subject: [PATCH] Carriage return should properly increase line number again. --- src/lex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lex.cpp b/src/lex.cpp index e2ec646..36128f0 100644 --- a/src/lex.cpp +++ b/src/lex.cpp @@ -76,7 +76,7 @@ namespace Lexer { break; case '\r': iLineColumn=1u; - if (i+1==p_sInStr.length() || p_sInStr.at(i+1)!='\n') iLineNum++; + if ((i+1)