askql
askql copied to clipboard
[AskScript] Comments not allowed when defining an array
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
.