GDScript: Add support for variadic functions

This commit is contained in:
Danil Alexeev committed 2025-06-09 21:53:05 +03:00
1 parent 3b963ab8b6
commit ee121ef80e
33 files changed
+416 -65

No files matched your search

+5
View File
@@ -135,6 +135,7 @@ static const char *token_names[] = {
";", // SEMICOLON,
".", // PERIOD,
"..", // PERIOD_PERIOD,
"...", // PERIOD_PERIOD_PERIOD,
":", // COLON,
"$", // DOLLAR,
"->", // FORWARD_ARROW,
@@ -1501,6 +1502,10 @@ GDScriptTokenizer::Token GDScriptTokenizerText::scan() {
case '.':
if (_peek() == '.') {
_advance();
if (_peek() == '.') {
_advance();
return make_token(Token::PERIOD_PERIOD_PERIOD);
}
return make_token(Token::PERIOD_PERIOD);
} else if (is_digit(_peek())) {
// Number starting with '.'.