BBx-Kitchen / bbj-language-server

BBj Language Server
MIT License
6 stars 6 forks source link

Support single line switch case statements #81

Open SebastianAdams opened 1 year ago

SebastianAdams commented 1 year ago

When using switch cases, single line commands in the "case" statement are valid and should not produce errors. Currently, the code below produces the following error: "This line needs to be wrapped by line breaks."

a$ = "2"

switch a$
    case "1"; print "First"; break
    case "2"; print "Second"; break
    case "3"; print "Third"; break    
    case default; print "Not in top three, try again"
swend