This commit is contained in:
Martino Ferrari
2026-01-23 14:01:26 +01:00
parent 462c832651
commit 14cba1b530
3 changed files with 39 additions and 11 deletions

View File

@@ -207,6 +207,7 @@ func (p *Parser) parseSubnode() (Subnode, bool) {
}
if t.Type == TokenEOF {
p.addError(t.Position, "unexpected EOF, expected }")
sub.EndPosition = t.Position
return sub, false
}
def, ok := p.parseDefinition()