The syntax grammer notes-
Data ::= "data" ( Sigma | List | Map | Integer | ByteString )
List ::= "[" Data* "]"
Map ::= "{" ( Data "=" Data )* "}"
Which suggests that { data 1 = data 5 } would be a valid Map, and [ data 1 ] would be a valid List. However, the parser doesn't actually expect the data keyword, it just expects the data literal.
If the parse behavior is intentional, then the grammer needs to be updated. If the grammer is correct, then the parse behavior should be updated.
The syntax grammer notes-
Which suggests that
{ data 1 = data 5 }would be a validMap, and[ data 1 ]would be a validList. However, the parser doesn't actually expect thedatakeyword, it just expects the data literal.If the parse behavior is intentional, then the grammer needs to be updated. If the grammer is correct, then the parse behavior should be updated.