aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Herbelin2016-04-13 10:19:44 +0200
committerHugo Herbelin2016-06-16 17:30:19 +0200
commit5beb87949659ce2fb9c9e16f923c1b01bd306727 (patch)
tree8117218e1ff0836f7744e35505c2be51a94913fb
parent4bff0cbf3eaac6ed4cb8670c6096b24ad67a58c0 (diff)
Fixing parsing of constr argument of ltac functions at level 8 in the
presence of entries starting with a non-terminal such as "b ^2".
-rw-r--r--ltac/g_ltac.ml43
1 files changed, 1 insertions, 2 deletions
diff --git a/ltac/g_ltac.ml4 b/ltac/g_ltac.ml4
index b1e3478c13..07b7036571 100644
--- a/ltac/g_ltac.ml4
+++ b/ltac/g_ltac.ml4
@@ -175,8 +175,7 @@ GEXTEND Gram
(* Tactic arguments to the right of an application *)
tactic_arg_compat:
[ [ a = tactic_arg -> a
- | r = reference -> Reference r
- | c = Constr.constr -> ConstrMayEval (ConstrTerm c)
+ | c = Constr.constr -> (match c with CRef (r,None) -> Reference r | c -> ConstrMayEval (ConstrTerm c))
(* Unambigous entries: tolerated w/o "ltac:" modifier *)
| "()" -> TacGeneric (genarg_of_unit ()) ] ]
;