mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
Parse incomplete lists correctly.
This commit is contained in:
parent
c19a48ea8a
commit
d88f0447c3
|
@ -883,7 +883,6 @@ func (pn *Primary) lbracket(ps *parser) {
|
|||
|
||||
if !parseSep(pn, ps, ']') {
|
||||
ps.error(errShouldBeRBracket)
|
||||
return
|
||||
}
|
||||
if parseSep(pn, ps, '{') {
|
||||
pn.lambda(ps)
|
||||
|
|
Loading…
Reference in New Issue
Block a user