crypto
crypto copied to clipboard
Should warn on new line inside of function params
The following is not valid Brightscript but brs doesn't warn about it:
test(
"test"
)
Any new lines after the opening parenthesis or before closing parenthesis causes it close. In writing regex for this, it's important to keep in mind that the following is valid Brightscript:
test(sub()
print "test"
end sub)
The same rules apply for no new lines allowed before or after sub
or end sub
though.