aboutsummaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_tokenizer.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2014-09-19 21:01:41 -0300
committerJuan Linietsky2014-09-19 21:01:41 -0300
commit0a557f3bf50a0ccff444003c5adc8078862e52c7 (patch)
tree64fef2b54fa65f895239e2384cc8164549099f74 /modules/gdscript/gd_tokenizer.cpp
parent549d344f0fef5e5748ded69b6a037698ff55f8bc (diff)
downloadgodot-0a557f3bf50a0ccff444003c5adc8078862e52c7.tar.gz
godot-0a557f3bf50a0ccff444003c5adc8078862e52c7.tar.zst
godot-0a557f3bf50a0ccff444003c5adc8078862e52c7.zip
Diffstat (limited to 'modules/gdscript/gd_tokenizer.cpp')
-rw-r--r--modules/gdscript/gd_tokenizer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gdscript/gd_tokenizer.cpp b/modules/gdscript/gd_tokenizer.cpp
index bd0beb313..7a1d6814b 100644
--- a/modules/gdscript/gd_tokenizer.cpp
+++ b/modules/gdscript/gd_tokenizer.cpp
@@ -284,7 +284,8 @@ void GDTokenizerText::_advance() {
while(GETCHAR(0)!='\n') {
code_pos++;
if (GETCHAR(0)==0) { //end of file
- _make_error("Unterminated Comment");
+ //_make_error("Unterminated Comment");
+ _make_token(TK_EOF);
return;
}
}