Skip to content

GDScript: Push multiline at the correct time when parsing super#115302

Merged
Repiteo merged 1 commit into
godotengine:masterfrom
cdemirer:fix-super-at-end-error-messages
Jan 26, 2026
Merged

GDScript: Push multiline at the correct time when parsing super#115302
Repiteo merged 1 commit into
godotengine:masterfrom
cdemirer:fix-super-at-end-error-messages

Conversation

@cdemirer

@cdemirer cdemirer commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

Fixes #115238

The push_multiline should only be done if there is actually an opening parenthesis. But also, looking at some other parts of the Analyzer, it looks like push_multiline(true) should be called before eating the opening parenthesis. So I used the pattern I saw in other places: Check first, then push_multiline, then advance.

P.S. It's been a while since I last worked with the GDScript module, hopefully I'm not missing anything important.

@cdemirer cdemirer requested a review from a team as a code owner January 23, 2026 15:09
@Chaosus Chaosus added this to the 4.7 milestone Jan 24, 2026

@dalexeev dalexeev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. 👍

@Repiteo Repiteo merged commit 032f5be into godotengine:master Jan 26, 2026
20 checks passed
@Repiteo

Repiteo commented Jan 26, 2026

Copy link
Copy Markdown
Contributor

Thanks!

rivie13 pushed a commit to rivie13/Phoenix-Agentic-Engine that referenced this pull request Feb 16, 2026
…error-messages

GDScript: Push multiline at the correct time when parsing `super`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment