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

`Label` inside code block in `Hotkey` code flow breaks `Return` indentation #432

Closed kyklish closed 3 months ago

kyklish commented 3 months ago

Description

Label inside code block in Hotkey code flow breaks Return indentation.

Expected formatted output snippet

F1::
    if (var) {
        LABEL:
            code
        return
    }
    code
return

Actual formatted output snippet

F1::
    if (var) {
        LABEL:
            code
        return
    }
    code
    return