diff --git a/pkg/logql/parser.go b/pkg/logql/parser.go
index 7d34c8820b23e6c70f605f2fcd2f3008fe4cad77..167b946a3f808091c537646b72e8fef744a17fe3 100644
--- a/pkg/logql/parser.go
+++ b/pkg/logql/parser.go
@@ -17,11 +17,10 @@ func init() {
 
 // ParseExpr parses a string and returns an Expr.
 func ParseExpr(input string) (Expr, error) {
-	var l = lexer{
+	l := lexer{
 		parser: exprNewParser().(*exprParserImpl),
 	}
 	l.Init(strings.NewReader(input))
-	//l.Scanner.Mode = scanner.SkipComments | scanner.ScanStrings | scanner.ScanInts
 	l.Scanner.Error = func(_ *scanner.Scanner, msg string) {
 		l.Error(msg)
 	}
diff --git a/pkg/logql/parser_test.go b/pkg/logql/parser_test.go
index 1b889500ee591d1e97f38d217c2b3302f430e114..69c2d7207954e622072dc8e9cf54023e72264f9e 100644
--- a/pkg/logql/parser_test.go
+++ b/pkg/logql/parser_test.go
@@ -54,12 +54,6 @@ func TestParse(t *testing.T) {
 			in:  `{foo="bar"}`,
 			exp: &matchersExpr{matchers: []*labels.Matcher{mustNewMatcher(labels.MatchEqual, "foo", "bar")}},
 		},
-		/*
-			{
-				in:  `{http.url=~"^/admin"}`,
-				exp: &matchersExpr{matchers: []*labels.Matcher{mustNewMatcher(labels.MatchRegexp, "http.url", "^/admin")}},
-			},
-		*/
 		{
 			in:  `{ foo = "bar" }`,
 			exp: &matchersExpr{matchers: []*labels.Matcher{mustNewMatcher(labels.MatchEqual, "foo", "bar")}},