summaryrefslogtreecommitdiff
path: root/parse/gram.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse/gram.y')
-rw-r--r--parse/gram.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse/gram.y b/parse/gram.y
index 5836b0c..749d7a5 100644
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -963,8 +963,8 @@ arrayelts
;
arrayelt: expr optendlns {$$ = $1;}
- | expr Tcolon expr optendlns {
- $$ = mkidxinit($2->loc, $1, $3);
+ | Tdot Tosqbrac expr Tcsqbrac Tasn expr optendlns {
+ $$ = mkidxinit($1->loc, $3, $6);
}
;