Closed joetesta closed 5 years ago
Can you provide a sample that reproduces the issue?
Hi -
this was the (partial) sample I included:
print "something", something_else
Any subs declared after this trigger "error"
I can't seem to reproduce this with this as the input. I'm guessing this was fixed with some other PR
' This is a sample file containing syntax that compiles properly
#const debug = true
REM Although the file compiles,
REM
REM Not all linting rules pass
sub DefaultMain()
print "something", something_else ' this should fail
print "request failed �"
#if debug = true
print "debug mode enabled"
#else
print "debug mode disabled"
#end if
print "in showChannelSGScreen"
'Indicate this is a Roku SceneGraph application'
screen = CreateObject("roSGScreen")
m.port = CreateObject("roMessagePort")
screen.setMessagePort(m.port)
'Create a scene and load /components/sampleproject.xml'
scene = screen.CreateScene("SampleProject")
screen.show()
stop
? "some thing";"other thing"
a = ["foo", "bar", "baz"]
b = [
"foo"
"bar"
"baz"
]
c = {
"foo": 1,
"bar": 2,
"baz": 3
}
c = {
"foo": 1
"bar": 2
"baz": 3
}
end sub
In my file I had a "print" statement with a quoted string followed by a comma and a var (line 153): print "something", something_else
this generated an appropriate error, however the rest of the file then generated a bunch of errors: