Update fizzbuzz.er

This commit is contained in:
Shunsuke Shibayama 2022-10-09 11:13:13 +09:00
parent e74c9fa707
commit 36402a417e
2 changed files with 7 additions and 6 deletions

View file

@ -469,7 +469,8 @@ impl Parser {
}
}
}
Some(t) if t.is(LSqBr) => {
// x[...] (`x [...]` will interpreted as `x([...])`)
Some(t) if t.is(LSqBr) && acc.col_end().unwrap() == t.col_begin().unwrap() => {
self.skip();
let index = self
.try_reduce_expr(false, false)