willowtreeapps / wist

A linter for BrightScript
Apache License 2.0
43 stars 11 forks source link

Unexpected error report when comments included in array with trailing comma #102

Closed joetesta closed 6 years ago

joetesta commented 6 years ago
sub Main()
  showChannelSGScreen()
  test = {
    ' will this report a strange error?
    myarray: [
      "something",
      "something_else",
    ]
  }
end sub
RectangleExample/source/main.brs
   8:6  error  Parsing error: mismatched input '"something"' expecting <EOF>
  10:4  error  Parsing error: no viable alternative at input '={\r\n' will this report a strange error?\r\nmyarray:[\r\n"something",\r\n"something_else",\r\n]'
  10:4  error  Parsing error: no viable alternative at input '[\r\n"something",\r\n"something_else",\r\n]