rokucommunity / brighterscript

A superset of Roku's BrightScript language
MIT License
152 stars 47 forks source link

multi-line parameters should be syntax errors #634

Open TwitchBronBron opened 2 years ago

TwitchBronBron commented 2 years ago

The function-starts-on-next-line parameter is a compile error on device, but bsc doesn't catch it.

sub main()
    callIt(
        function()
            print "hello from inside"
        end function
    )
end sub

sub callIt(callback)
    callback()
end sub
elsassph commented 1 year ago

And error with vanilla .brs but for .bs the transpilation could fix it!

TwitchBronBron commented 1 year ago

Agreed, this would be an awesome improvement to brighterscript!