fixed sequence parsing not properly pulling whitespace the occurs just before the closing delimiter
This commit is contained in:
parent
81cebfd8dc
commit
5184bb2f26
3
parse.go
3
parse.go
@ -261,6 +261,9 @@ func PullSeq(rbuf *bufio.Reader) ([]GngType,error) {
|
|||||||
} else if (b == od) {
|
} else if (b == od) {
|
||||||
rbuf.ReadByte()
|
rbuf.ReadByte()
|
||||||
return r,nil
|
return r,nil
|
||||||
|
} else if Whitespace.includes(b) {
|
||||||
|
_,err := PullWhitespace(rbuf)
|
||||||
|
if err != nil { return r,err }
|
||||||
} else {
|
} else {
|
||||||
el,err := PullElement(rbuf)
|
el,err := PullElement(rbuf)
|
||||||
if err != nil { return r,err }
|
if err != nil { return r,err }
|
||||||
|
Loading…
Reference in New Issue
Block a user