aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2022-06-16 13:38:06 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2022-06-16 13:38:06 -0400
commitc3fa99d299ff88ff96d00ea791a0361f8471c298 (patch)
tree93544e8ddb091c85f2803fca488d733730f7b40c /spec
parente5615fc5ff0b47c331d97c1eb588ec43d590f0b3 (diff)
Allow zero-length destructuring []
Diffstat (limited to 'spec')
-rw-r--r--spec/grammar.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/grammar.md b/spec/grammar.md
index acb00ef5..ab29d32f 100644
--- a/spec/grammar.md
+++ b/spec/grammar.md
@@ -68,7 +68,7 @@ The target of subject assignment can be compound to allow for destructuring. Lis
LHS_ENTRY= LHS_ELT | lhs "⇐" NAME
lhsStr = LHS_ATOM ( "‿" LHS_ATOM )+
lhsList = "⟨" ⋄? ( ( LHS_ENTRY ⋄ )* LHS_ENTRY ⋄? )? "⟩"
- lhsArray = "[" ⋄? ( LHS_ELT ⋄ )* LHS_ELT ⋄? "]"
+ lhsArray = "[" ⋄? ( ( LHS_ELT ⋄ )* LHS_ELT ⋄? )? "]"
lhsComp = LHS_SUB | lhsStr | "(" lhs ")"
lhs = s | lhsComp