fixed sequence parsing not properly pulling whitespace the occurs just before the closing delimiter

This commit is contained in:
mediocregopher 2013-05-27 01:08:23 -04:00
parent 81cebfd8dc
commit 5184bb2f26

View File

@ -261,6 +261,9 @@ func PullSeq(rbuf *bufio.Reader) ([]GngType,error) {
} else if (b == od) {
rbuf.ReadByte()
return r,nil
} else if Whitespace.includes(b) {
_,err := PullWhitespace(rbuf)
if err != nil { return r,err }
} else {
el,err := PullElement(rbuf)
if err != nil { return r,err }