diff --git a/promql/parse.go b/promql/parse.go index 4bb4a11c6..145b9849d 100644 --- a/promql/parse.go +++ b/promql/parse.go @@ -106,9 +106,6 @@ func (p *parser) parseExpr() (expr Expr, err error) { defer p.recover(&err) for p.peek().typ != ItemEOF { - if p.peek().typ == ItemComment { - continue - } if expr != nil { p.errorf("could not parse remaining input %.15q...", p.lex.input[p.lex.lastPos:]) }