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.
This commit is contained in:
Johannes 2021-03-06 01:53:32 +01:00
parent 4de0768cdb
commit 982a0ac348
No known key found for this signature in database
GPG Key ID: B988B760383F3A91
1 changed files with 4 additions and 0 deletions

View File

@ -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();
}