update package s2ioperator

Signed-off-by: soulseen <sunzhu@yunify.com>
This commit is contained in:
soulseen
2019-08-30 10:37:09 +08:00
parent f22e8ea90e
commit bbd151e7aa
300 changed files with 18100 additions and 52462 deletions

View File

@@ -521,12 +521,11 @@ func (r *Lexer) SkipRecursive() {
r.scanToken()
var start, end byte
switch r.token.delimValue {
case '{':
if r.token.delimValue == '{' {
start, end = '{', '}'
case '[':
} else if r.token.delimValue == '[' {
start, end = '[', ']'
default:
} else {
r.consume()
return
}
@@ -1152,7 +1151,7 @@ func (r *Lexer) Interface() interface{} {
} else if r.token.delimValue == '[' {
r.consume()
ret := []interface{}{}
var ret []interface{}
for !r.IsDelim(']') {
ret = append(ret, r.Interface())
r.WantComma()