Parse collection literals as atomic expressions
This commit is contained in:
@@ -120,6 +120,7 @@ atomicExpression
|
||||
: objectLiteral
|
||||
: jump
|
||||
: loop
|
||||
: collectionLiteral
|
||||
: SimpleName
|
||||
;
|
||||
|
||||
@@ -275,3 +276,7 @@ arrayAccess
|
||||
objectLiteral
|
||||
: "object" (":" delegationSpecifier{","})? classBody
|
||||
;
|
||||
|
||||
collectionLiteral
|
||||
: "[" element{","}? "]"
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user