Skip to content

Comments

Fix the indentation behavior of else/elif#187

Merged
jcs090218 merged 1 commit intogodotengine:masterfrom
SFurnace:master
Feb 2, 2026
Merged

Fix the indentation behavior of else/elif#187
jcs090218 merged 1 commit intogodotengine:masterfrom
SFurnace:master

Conversation

@SFurnace
Copy link
Contributor

@SFurnace SFurnace commented Feb 1, 2026

Hello everyone, recently when I’ve been using Emacs to write GDScript, I noticed that the indentation behavior for else statements is incorrect. I’m new to Elisp, and after trying to track down the issue myself without success, I used some AI assistance to attempt a fix. I tested it locally and the AI’s suggested change does fix the indentation behavior. Could I ask the repository maintainer(s) to help review whether this fix is appropriate to merge into the main branch?

The incorrect behavior is that the indentation of else gets cleared:
before

The expected behavior is:
after

Fix string-prefix-p parameter order in gdscript-info-dedenter-opening-block-positions
@jcs090218
Copy link
Collaborator

Looks correct to me! :D

@jcs090218 jcs090218 merged commit dd44f1d into godotengine:master Feb 2, 2026
12 checks passed
@jcs090218
Copy link
Collaborator

Thank you for fixing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants