diff options
author | Johannes <johawitt@outlook.de> | 2021-03-06 01:53:32 +0100 |
---|---|---|
committer | Johannes <johawitt@outlook.de> | 2021-03-06 01:57:37 +0100 |
commit | 982a0ac3487615ab012e4cfcd5fb5b160ca92175 (patch) | |
tree | 6aae760582cb1fda0536f0e380a561ae8c5bb236 /modules | |
parent | 4de0768cdbaf68781214601e679548a69c15c673 (diff) |
Fix GDScript Tokenizer being very strict about the number of underscores
You can use multiple underscores in one number, just not two of them
together.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_tokenizer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_tokenizer.cpp b/modules/gdscript/gdscript_tokenizer.cpp index 315b8ee3b4..5888704c90 100644 --- a/modules/gdscript/gdscript_tokenizer.cpp +++ b/modules/gdscript/gdscript_tokenizer.cpp @@ -633,6 +633,8 @@ GDScriptTokenizer::Token GDScriptTokenizer::number() { push_error(error); } previous_was_underscore = true; + } else { + previous_was_underscore = false; } _advance(); } @@ -704,6 +706,8 @@ GDScriptTokenizer::Token GDScriptTokenizer::number() { push_error(error); } previous_was_underscore = true; + } else { + previous_was_underscore = false; } _advance(); } |