summaryrefslogtreecommitdiff
path: root/parser/expr.go
diff options
context:
space:
mode:
Diffstat (limited to 'parser/expr.go')
-rw-r--r--parser/expr.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/parser/expr.go b/parser/expr.go
index c2d5eeb..fa8afa4 100644
--- a/parser/expr.go
+++ b/parser/expr.go
@@ -71,6 +71,10 @@ func (p *Parser) ParseExpr(in Tokens) (out Tokens, err error) {
}
}
ops = append(ops, scanner.Token{Str: "call", Id: lang.Call, Pos: t.Pos})
+ case lang.BracketBlock:
+ out = append(out, t)
+ vl++
+ ops = append(ops, scanner.Token{Str: "index", Id: lang.Index, Pos: t.Pos})
}
if len(selectors) > 0 {
out = append(out, selectors...)