You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, the original unformatted input sucks. But one purpose of formatting is to help understand badly-written code. The debugger parses it correctly, always executing the last line regardless of its indentation. Using AHK's own AST for formatting
would avoid inconsistencies between appearance and performance.
The text was updated successfully, but these errors were encountered:
Yes, I do plan to research AHK's actual AST and effectively recreate it for exactly this reason. Thanks for the bug report, formatting / AST-related issues are the ones I'm most excited to work on.
Description
Statements after single-line else statement are indented one level more than expected.
Unformatted input snippet
Expected formatted output snippet
or preferably:
Actual formatted output snippet
Yes, the original unformatted input sucks. But one purpose of formatting is to help understand badly-written code. The debugger parses it correctly, always executing the last line regardless of its indentation. Using AHK's own AST for formatting
would avoid inconsistencies between appearance and performance.
The text was updated successfully, but these errors were encountered: