feat: add field comments, local time zone decoding and in-value cancellation
Test / test (push) Successful in 1m32s

Assisted-by: GLM 5.3 Flash
This commit is contained in:
2026-09-22 00:44:23 +02:00
parent 71bd82a7a5
commit d18935ebc2
8 changed files with 307 additions and 11 deletions
+15 -2
View File
@@ -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
}