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
The first version is not actually valid syntax in AHK as written. I'm not sure if it's fair to expect the formatter to fix this, but if it's not it would be helpful if the extension recognised and highlighted the error during editing
lining up the colons vertically is nice, but perhaps a lot to ask
but this is a syntax error in AHK for object literals (which I was rather hoping the formatter woudl fix for me automatically, per my example). Object literals in AHK require the opening and closing braces to be on the same line as the immediately following/preceding expressions.
The text was updated successfully, but these errors were encountered:
## 3.1.0 - 2022-11-21 🦃
Compiler:
- New compiler options in settings: Choose base file, file icon, and "use [MPRESS](https://www.autohotkey.com/mpress/mpress_web.htm)"
- Add "Compiler GUI" command in context menu to use the AHK GUI when compiling
Snippets:
- Update snippets for AHK 1.1.35.00 and fix broken `InStr()` snippet ([#263](#263))
Grammar: Fix `#Requires` not being recognized ([#268](#268))
Editor: New AHK file icon (green square with white H)
Debugger: Minor debugger improvements
Formatter: Close the following bugs:
- Formatter incorrectly indents object literals ([#184](#184), [#222](#222))
- Nested one command code flow control ([#255](#255))
Miscellaneous:
- Extension should start up faster
Description
The formatter does not behave properly on multi-line object literal assignments.
Unformatted input snippet
Expected formatted output snippet
Note:
Actual formatted output snippet
Additional context
Note:
a) Formatter incorrectly indents object literals #184 seems to relate to object literals defined as the return values of functions (true?)
b) The example provided in Formatter incorrectly indents object literals #184 uses the "one true brace" style-
but this is a syntax error in AHK for object literals (which I was rather hoping the formatter woudl fix for me automatically, per my example). Object literals in AHK require the opening and closing braces to be on the same line as the immediately following/preceding expressions.
The text was updated successfully, but these errors were encountered: