summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Liebisch <mario.liebisch@gmail.com>2021-05-23 09:37:53 +0200
committerMario Liebisch <mario.liebisch@gmail.com>2021-05-23 09:37:53 +0200
commitbf708e72dc5b6de7f2b0e8f433f17ba2e3064179 (patch)
tree0f91c53c40290f49fd6877b64a0d30120afec5af
parent45d3b965bb55f3111478306070034ed18e8fa5e4 (diff)
Increase line counter when parsing comments
-rw-r--r--core/variant/variant_parser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/variant/variant_parser.cpp b/core/variant/variant_parser.cpp
index edaeddbf27..0c93a1084b 100644
--- a/core/variant/variant_parser.cpp
+++ b/core/variant/variant_parser.cpp
@@ -151,6 +151,7 @@ Error VariantParser::get_token(Stream *p_stream, Token &r_token, int &line, Stri
return OK;
}
if (ch == '\n') {
+ line++;
break;
}
}
@@ -1321,6 +1322,7 @@ Error VariantParser::parse_tag_assign_eof(Stream *p_stream, int &line, String &r
return ERR_FILE_EOF;
}
if (ch == '\n') {
+ line++;
break;
}
}