Improving parsing and specs

This commit is contained in:
Martino Ferrari
2026-01-22 03:15:42 +01:00
parent b2e963fc04
commit a88f833f49
5 changed files with 59 additions and 9 deletions

View File

@@ -235,6 +235,10 @@ func (p *Parser) parseValue() (Value, error) {
arr.EndPosition = endTok.Position
break
}
if t.Type == TokenComma {
p.next()
continue
}
val, err := p.parseValue()
if err != nil {
return nil, err