mirror of
https://github.com/godotengine/godot.git
synced 2024-10-22 21:21:53 +00:00
Add parser support for semicolons after annotation, fixes #54280
This commit is contained in:
parent
9b94c80e9a
commit
46d2fd5a68
|
@ -1567,6 +1567,10 @@ GDScriptParser::AnnotationNode *GDScriptParser::parse_annotation(uint32_t p_vali
|
|||
}
|
||||
complete_extents(annotation);
|
||||
|
||||
while (match(GDScriptTokenizer::Token::SEMICOLON)) {
|
||||
// Semicolons after annotation are optional.
|
||||
}
|
||||
|
||||
match(GDScriptTokenizer::Token::NEWLINE); // Newline after annotation is optional.
|
||||
|
||||
if (valid) {
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
pass;var x;@export;@warning_ignore("unused_private_class_variable");;;var _y : float;pass
|
|
@ -0,0 +1 @@
|
|||
GDTEST_OK
|
Loading…
Reference in New Issue
Block a user