parser: Fix parsing of patterns containing explicit tactic names.
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 6 Jan 2020 20:54:09 +0000 (20:54 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 6 Jan 2020 20:54:09 +0000 (20:54 +0000)
src/parser.mly

index faccb6b..c59a555 100644 (file)
@@ -148,7 +148,7 @@ patterns:
     ;
 pattern:
     | STRING     { Ast.PTactic ($loc, "*file", [$1]) }
-    | ID pattern_params { Ast.PTactic ($loc, $1, $2) }
+    | TACTIC pattern_params { Ast.PTactic ($loc, $1, $2) }
     ;
 pattern_params:
     | LEFT_PAREN separated_list(COMMA, pattern_param) RIGHT_PAREN { $2 }