Skip to content
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

Allow auto-indenting with syntax errors when using regex-based indent matches to improve bash auto-indent behavior #24160

Merged
merged 5 commits into from
Feb 4, 2025

Conversation

probably-neb
Copy link
Contributor

  • fix inserting elif before else in bash not auto-indenting correctly

Release Notes:

  • Fixed an issue where inserting an elif before an else in bash would not properly auto-indent

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 4, 2025
probably-neb and others added 2 commits February 3, 2025 21:13
does so by ignoring the no-indent when there are parse errors when using
a regex-based indent method. Bash is the only language where this is an
issue right now

Co-authored-by: Conrad Irwin <[email protected]>
@probably-neb probably-neb force-pushed the fix-bash-elif-else-auto-indent-bug branch from 35e35e6 to 6ef1fff Compare February 4, 2025 03:19
@probably-neb probably-neb changed the title fix bash elif else auto indent bug Allow auto-indenting with syntax errors when using regex-based indent matches to improve bash auto-indent behavior Feb 4, 2025
@probably-neb probably-neb merged commit 8742c18 into main Feb 4, 2025
13 checks passed
@probably-neb probably-neb deleted the fix-bash-elif-else-auto-indent-bug branch February 4, 2025 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant