Describe the bug
Declare and Set statements can be chained with commas in kOS, but the language server makes them as errors.
To Reproduce
Steps to reproduce the behavior:
In a script, write something like set a to 5, b to 6. or local a to 5, b to 6. The language server will mark that as an error: Expected ".". The script will, however run successfully in game as if it said set a to 5. set b to 6. or local a to 5. local b to 6.
Expected behavior
The parser should evaluate chained Declare and Set statements in a similar way to as if they were separate.
Screenshots
If applicable, add screenshots to help explain your problem.
Editor (please complete the following information):
OS: Mac and Windows
Editor vscode
v 1.5.5
Additional context
The server already correctly recognizes Parameter chains. On the other hand, kOS doesn't accept Lock chains or Unset chains, so the server's behavior relating to them is correct.
Even though there is a good example for Parameter, I don't really understand parsers, so someone else will probably have to fix it.
Describe the bug Declare and Set statements can be chained with commas in kOS, but the language server makes them as errors.
To Reproduce Steps to reproduce the behavior: In a script, write something like
set a to 5, b to 6.
orlocal a to 5, b to 6.
The language server will mark that as an error:Expected ".".
The script will, however run successfully in game as if it saidset a to 5. set b to 6.
orlocal a to 5. local b to 6.
Expected behavior The parser should evaluate chained Declare and Set statements in a similar way to as if they were separate.
Screenshots If applicable, add screenshots to help explain your problem.
Editor (please complete the following information):
Additional context The server already correctly recognizes Parameter chains. On the other hand, kOS doesn't accept Lock chains or Unset chains, so the server's behavior relating to them is correct.
Even though there is a good example for Parameter, I don't really understand parsers, so someone else will probably have to fix it.