feat: add field comments, local time zone decoding and in-value cancellation
Test / test (push) Successful in 1m32s
Test / test (push) Successful in 1m32s
Assisted-by: GLM 5.3 Flash
This commit is contained in:
@@ -1079,7 +1079,15 @@ func (p *parser) parseArray() (val any, err error) {
|
||||
}
|
||||
}()
|
||||
}
|
||||
for {
|
||||
for i := 0; ; i++ {
|
||||
// A container the size of memory should answer cancellation inside the
|
||||
// value, not only between statements, so the element loops check the
|
||||
// context on their own cadence.
|
||||
if i%ctxCheckInterval == 0 {
|
||||
if err := p.checkCtx(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
if err := p.skipNestedSpace(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -1148,7 +1156,12 @@ func (p *parser) parseInlineTable() (val any, err error) {
|
||||
p.pos++
|
||||
return tbl, nil
|
||||
}
|
||||
for {
|
||||
for i := 0; ; i++ {
|
||||
if i%ctxCheckInterval == 0 {
|
||||
if err := p.checkCtx(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
if err := p.skipNestedSpace(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user