ahkpp
ahkpp copied to clipboard
chained methods with inline functions cause error
Description
when i call a function passing an inline function as a peram the next chained attribute/function is moved down 2 lines and indented 2 times while the . to connect them is down and indented by 1 causing a syntax error after formatting
Expected formatted output snippet
; Insert what you expect to see when you format the input snippet
; For consistency, use four spaces to indicate one level of indentation
for thing in listedVersions.sort((a, s) {
}).Reverse() {
}
Actual formatted output snippet
; Insert the snippet you see when you format the code using the extension
; Keep it exactly as you see it so others can reproduce it
; This may be the same as the input snippet, but it is still helpful
for thing in listedVersions.sort((a, s) {
})
.
Reverse() {
}
Additional context
((a, s) {
}).aassdf()
will be formatted correctly, having nothing change. it is only when the func is a peram that it is formatted incorrectly