crypto icon indicating copy to clipboard operation
crypto copied to clipboard

Should warn on new line inside of function params

Open triwav opened this issue 5 years ago • 0 comments

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.

triwav avatar Jun 26 '19 21:06 triwav