Parse incomplete lists correctly.

This commit is contained in:
Qi Xiao 2016-02-16 14:51:49 +01:00
parent c19a48ea8a
commit d88f0447c3

View File

@ -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)