summaryrefslogtreecommitdiff
path: root/parse
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2019-01-07 00:10:17 -0800
committerOri Bernstein <ori@eigenstate.org>2019-01-07 00:10:17 -0800
commitaf63c8fc4082fca2b5148cb55a6870ac926660e4 (patch)
treefbc4a1129ed7e6c6f7de4ff0005dcc43e4c11319 /parse
parenta2644d1d980e0f1c5439dce7764f0d051cf4cc41 (diff)
downloadmc-af63c8fc4082fca2b5148cb55a6870ac926660e4.tar.gz
Change indexed array literal syntax.
Diffstat (limited to 'parse')
-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);
}
;