mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
Parse pairs in table literal correctly.
This commit is contained in:
parent
bb1198614f
commit
fa32cf73a0
|
@ -331,8 +331,9 @@ func (t *Tree) table() (tn *TableNode) {
|
|||
|
||||
next := t.peekNonSpace()
|
||||
if next.Typ == ItemBare && next.Val == "=" {
|
||||
t.next()
|
||||
// New element of dict part. Skip spaces and find value term.
|
||||
t.nextNonSpace()
|
||||
t.peekNonSpace()
|
||||
valueTerm := t.term()
|
||||
tn.appendToDict(term, valueTerm)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user