aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--parsing/g_tactic.ml47
1 files changed, 1 insertions, 6 deletions
diff --git a/parsing/g_tactic.ml4 b/parsing/g_tactic.ml4
index 4daad6f5e9..f4b0e01e58 100644
--- a/parsing/g_tactic.ml4
+++ b/parsing/g_tactic.ml4
@@ -231,12 +231,7 @@ GEXTEND Gram
<:ast< (RECCLAUSE $name (FUNVAR ($LIST $it)) $body) >> ] ]
;
match_pattern:
- [ [ id = constrarg; "["; pc = constrarg; "]" ->
- (match id with
- | Coqast.Node(_,"COMMAND",[Coqast.Nvar(_,s)]) ->
- <:ast< (SUBTERM ($VAR $s) $pc) >>
- | _ ->
- errorlabstrm "Gram.match_pattern" [<'sTR "Not a correct SUBTERM">])
+ [ [ id = identarg; "["; pc = constrarg; "]" -> <:ast< (SUBTERM $id $pc) >>
| "["; pc = constrarg; "]" -> <:ast< (SUBTERM $pc) >>
| pc = constrarg -> <:ast< (TERM $pc) >> ] ]
;