mark-wiemer-org / ahkpp

AutoHotkey Plus Plus (AHK++) - AutoHotkey v1 and v2 support for VS Code
https://marketplace.visualstudio.com/items?itemName=mark-wiemer.vscode-autohotkey-plus-plus
Other
152 stars 10 forks source link

`FIX`: `label` inside code block breaks `return` indentation #434

Closed kyklish closed 3 months ago

kyklish commented 3 months ago

Closes #432.

Changes proposed in this pull request:

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