From d4f95da062a683c5d7a0f6f5bc0357039a90889a Mon Sep 17 00:00:00 2001 From: suchmememanyskill Date: Tue, 27 Jul 2021 01:10:39 +0200 Subject: [PATCH] comments should count as lines --- source/script/parser.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/script/parser.c b/source/script/parser.c index e335762..f1207ab 100644 --- a/source/script/parser.c +++ b/source/script/parser.c @@ -127,6 +127,9 @@ u8 nextToken(char** inPtr, void** val) { while (*in && *in != '\n') in++; + + lineNumber++; + scriptCurrentLine = lineNumber; } else if (isValidWord(*in)) { char* startWord = in;