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

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

Closed
kyklish opened this issue May 14, 2024 · 0 comments · Fixed by #434
Closed

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

kyklish opened this issue May 14, 2024 · 0 comments · Fixed by #434
Assignees
Labels
bug something isn't working formatter code formatter issues

Comments

@kyklish
Copy link
Contributor

kyklish commented May 14, 2024

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
@kyklish kyklish added bug something isn't working formatter code formatter issues labels May 14, 2024
@kyklish kyklish changed the title Label inside code breaks Return indentation Label inside code block breaks Return indentation May 14, 2024
@kyklish kyklish changed the title Label inside code block breaks Return indentation Label inside Hotkey breaks Return indentation May 14, 2024
@kyklish kyklish changed the title Label inside Hotkey breaks Return indentation Label inside code block in Hotkey breaks Return indentation May 14, 2024
@kyklish kyklish changed the title Label inside code block in Hotkey breaks Return indentation Label inside code block in Hotkey code flow breaks Return indentation May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working formatter code formatter issues
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants