diff --git a/language/parser/parser.go b/language/parser/parser.go index 00904456..947b2a24 100644 --- a/language/parser/parser.go +++ b/language/parser/parser.go @@ -1600,7 +1600,7 @@ func reverse(parser *Parser, openKind int, parseFn parseFn, closeKind int, zinte } nodes = append(nodes, node) } - if zinteger && len(nodes) <= 0 { + if zinteger && len(nodes) == 0 { return nodes, unexpectedEmpty(parser, token.Start, openKind, closeKind) } return nodes, nil