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:
commit
ee4ef9709d
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue