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

FIX: label inside code block breaks return indentation #434

Merged

Conversation

kyklish
Copy link
Contributor

@kyklish kyklish commented May 14, 2024

Closes #432.

Changes proposed in this pull request:

  • make indent inside label only in top level code. No indent inside nested code blocks.
  • change ahk++.formatter.indentCodeAfterLabel description in settings.

Indented code after Hotkey and Label needed only in top level hierarchy. Inside nested code blocks indent not needed. Optional behavior may be like in Switch-Case construction, where Case CaseValue: label has lower indent then code.

Switch [SwitchValue]
{
Case CaseValue1: ; <-- lower indent
    Statements1
Case CaseValue2a, CaseValue2b:
    Statements2
Default:
    Statements3
}

Notifying @mark-wiemer

mark-wiemer
mark-wiemer previously approved these changes May 24, 2024
package.json Outdated Show resolved Hide resolved
@mark-wiemer mark-wiemer added this pull request to the merge queue May 24, 2024
Merged via the queue into mark-wiemer-org:main with commit 01689f8 May 24, 2024
3 checks passed
@kyklish kyklish deleted the fix/432-label-inside-code-block branch May 24, 2024 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Label inside code block in Hotkey code flow breaks Return indentation
2 participants