Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Declare and Set chains not recognized #205

Open
NCGThompson opened this issue Sep 17, 2023 · 0 comments
Open

[BUG] Declare and Set chains not recognized #205

NCGThompson opened this issue Sep 17, 2023 · 0 comments
Assignees

Comments

@NCGThompson
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants