BalticAmadeus / AblFormatter

Code formatter for Progress OpenEdge (ABL)
Apache License 2.0
6 stars 0 forks source link

The colon of some blocks jumps to the next line if there are spaces before it #202

Closed gustason closed 1 month ago

gustason commented 1 month ago

So far I have only noticed this in catch and finally blocks.

For example,

catch oFunkyError as Progress.Lang.AppError :
    oGroovyResponse:errorStatus = true.
    oGroovyResponse:addMessage(oFunkyError:GetMessage(1)).
    return oGroovyResponse.
end catch.

formats as this

catch oFunkyError as Progress.Lang.AppError
    :
    oGroovyResponse:errorStatus = true.
    oGroovyResponse:addMessage(oFunkyError:GetMessage(1)).
    return oGroovyResponse.
end catch.