Merge pull request #46714 from HaSa1002/fix-gdscript-underscore-strict

Fix GDScript Tokenizer being very strict about the number of underscores
This commit is contained in:
Rémi Verschelde 2021-05-06 20:19:45 +02:00 committed by GitHub
commit ee4ef9709d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -643,6 +643,8 @@ GDScriptTokenizer::Token GDScriptTokenizer::number() {
push_error(error);
}
previous_was_underscore = true;
} else {
previous_was_underscore = false;
}
_advance();
}
@ -714,6 +716,8 @@ GDScriptTokenizer::Token GDScriptTokenizer::number() {
push_error(error);
}
previous_was_underscore = true;
} else {
previous_was_underscore = false;
}
_advance();
}