-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add parser support for semicolons after annotation #54852
base: master
Are you sure you want to change the base?
Conversation
0d73bf4
to
80aa23e
Compare
Why is this useful exactly? Annotations can already be written on the same line as a statement without a semicolon |
@LightningAA it just fixes the lack of consistency among newline/semicolon-separated statements |
Also, it allows code such as:
to parse correctly. |
The PR is two years old and, at least at a glance, looks good to me. Although there are no merge conflicts, could you rebase this just in case? |
80aa23e
to
46b8858
Compare
done |
modules/gdscript/tests/scripts/parser/features/single_line_class_statements.gd
Outdated
Show resolved
Hide resolved
46b8858
to
46d2fd5
Compare
Following GDScript will now parse correctly:
This closes #54280