askql icon indicating copy to clipboard operation
askql copied to clipboard

[AskScript] Comments not allowed when defining an array

Open czerwinskilukasz1 opened this issue 4 years ago • 0 comments

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 avatar Jul 17 '20 11:07 czerwinskilukasz1