We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9f620e commit fdba92bCopy full SHA for fdba92b
parser/parser.go
@@ -619,6 +619,9 @@ func (p *parser) parsePredicate() Node {
619
node = p.parseSequenceExpression()
620
} else {
621
node = p.parseExpression(0)
622
+ if p.current.Is(Operator, ";") {
623
+ p.error("wrap predicate with brackets { and }")
624
+ }
625
}
626
p.depth--
627
parser/parser_test.go
@@ -925,7 +925,7 @@ func TestParse_error(t *testing.T) {
925
| .....^`},
926
{
927
`map(ls, 1; 2; 3)`,
928
- `unexpected token Operator(";") (1:10)
+ `wrap predicate with brackets { and } (1:10)
929
| map(ls, 1; 2; 3)
930
| .........^`,
931
},
0 commit comments