From e1be17e581a607a0570779fe18a718f8fa0faee6 Mon Sep 17 00:00:00 2001 From: Mario Liebisch Date: Sun, 23 May 2021 09:37:53 +0200 Subject: [PATCH] Increase line counter when parsing comments (cherry picked from commit bf708e72dc5b6de7f2b0e8f433f17ba2e3064179) --- core/variant_parser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/variant_parser.cpp b/core/variant_parser.cpp index 6a321eec8..1ac32c139 100644 --- a/core/variant_parser.cpp +++ b/core/variant_parser.cpp @@ -160,6 +160,7 @@ Error VariantParser::get_token(Stream *p_stream, Token &r_token, int &line, Stri return OK; } if (ch == '\n') { + line++; break; } } @@ -1559,6 +1560,7 @@ Error VariantParser::parse_tag_assign_eof(Stream *p_stream, int &line, String &r return ERR_FILE_EOF; } if (ch == '\n') { + line++; break; } }