BalticAmadeus / AblFormatter

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

The whole class does not get parsed if END METHOD. is used at the end of a constructor #223

Open gustason opened 3 weeks ago

gustason commented 3 weeks ago

For example,

CLASS DecoratedMotorcycle: 

    CONSTRUCTOR DecoratedMotorcycle():
        message "moto".
    END METHOD.

END CLASS.

image

eglekaz commented 1 week ago

END METHOD should not be used to end constructor. It should be END [CONSTRUCTOR] Documentation: https://documentation.progress.com/output/ua/OpenEdge_latest/pdsoe/PLUGINS_ROOT/com.openedge.pdt.langref.help/rfi1424920513810.html

@gustason please check and close the issue if everything is okay.