BBx-Kitchen / bbj-language-server

BBj Language Server
MIT License
7 stars 6 forks source link

methodret as part of a single line IF #18

Closed dhuebner closed 1 year ago

dhuebner commented 1 year ago

Following should work aswell:

method public void setUserName(String userName!)
    if #bc! = null() then methodret 
methodend

I think a REM statement after methodret should also be supported

method public void setUserName(String userName!)
    if #bc! = null() then methodret; REM <- syntax error here
methodend
StephanWald commented 1 year ago

Yes, REM can come after anything, even

CLASS PUBLIC MyClass ; REM this is a class