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

[AskScript] Comments not allowed when defining an array #401

Open
czerwinskilukasz1 opened this issue Jul 17, 2020 · 0 comments
Open

[AskScript] Comments not allowed when defining an array #401

czerwinskilukasz1 opened this issue Jul 17, 2020 · 0 comments
Labels
AskScript ./src/askscript/** bug Something isn't working type:syntax related to syntax or syntax sugar
Milestone

Comments

@czerwinskilukasz1
Copy link
Collaborator

The following example should work but results in a Syntax Error:

ask {
	[       // opening bracket
	    1,  // first value
	    2,  // second value
	    3   // third value
	]       // closing bracket
}

Error:

SyntaxError: Expected " ", "'", "(", "[", "\n", "\r", "\t", "]", "false", "fun", "null", "query", "remote(", "true", "{", [0-9], [\-!<>+*\^%=&|], [\-], or [_$a-zA-Z] but "/" found.
Location: {
  "start": {
    "offset": 15,
    "line": 2,
    "column": 10
  },
  "end": {
    "offset": 16,
    "line": 2,
    "column": 11
  }
}

To be precise, a syntax error is thrown for each of the comments above, except for // closing bracket.

@czerwinskilukasz1 czerwinskilukasz1 added bug Something isn't working AskScript ./src/askscript/** type:syntax related to syntax or syntax sugar labels Jul 17, 2020
@czerwinskilukasz1 czerwinskilukasz1 added this to the v1.5 milestone Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AskScript ./src/askscript/** bug Something isn't working type:syntax related to syntax or syntax sugar
Projects
None yet
Development

No branches or pull requests

1 participant