Skip to content

Commit 926d12c

Browse files
remember to advance past the ending ] during infix [ exprs
1 parent ca9887b commit 926d12c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/expr.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ infix('.', 80, function(left) {
6060
infix('[', 80, function(left) {
6161
this.children = [left, expression(0)]
6262
this.type = 'binary'
63+
advance(']')
6364
return this
6465
})
6566
infix('(', 80, function(left) {

0 commit comments

Comments
 (0)