mark-wiemer-org/ahkpp

No indent after complex hotkey, hotstring

Closed this issue · 3 comments

Expected formatted output snippet

F1 & F2 Up::
    code
return

::btw::
    code
return

Actual formatted output snippet

F1 & F2 Up::
code
return

::btw::
code
return

@kyklish are you sure the expectation is to indent after the hotstring?

::btw::by the way
    code
return

PR #304 explicitly adds a test to keep the code not indented

#Warn All

; no problem
::ahk::autohotkey 

; also no problem
::text::
MsgBox, % "text" 
return

; but...
::btw::by the way
MsgBox, % "text" ; open "#Warn, All" -> Warning: This line will never execute, due to Return preceding it.
return

; or can't run of this case
;
; ::btw2::by the way
; by the way2
; return

Did I miss something?

@kyklish are you sure the expectation is to indent after the hotstring?

::btw::by the way
    code
return

PR #304 explicitly adds a test to keep the code not indented

My typo in bug description. Got fix first message.

@CoffeeChaton

Did I miss something?

It's my mistake. Look at fixed first message.