Closed vbasky closed 5 years ago
I'm trying to reproduce this, but it seems to be working for me. Can you try to narrow down the actual syntax causing the error? I'm thinking there might be a syntax bug somewhere else, causing a chain of additional syntax errors shown in your code.
'This shows no syntax errors at all
sub Main()
k = true
if k then
If true then
m.play_button.setFocus(true)
End If
end if
end sub
Nevermind! I just realized the issue is the capital "T"
in "Then"
. Thanks.
I just opened this issue in the brs
project. When it gets fixed there, I will update this project.
Oh yeah the setting on vscode is
'brightscript.format.keywordCase' : 'title'
That's only used when you use the format document command in vscode. Shouldn't have any affect on the code itself (except for this bug lol)
This was fixed in 1.9.0-beta7.
Valid syntax now shows expected a statement to follow if ... condition
Version: 1.9.0-beta5