aboutsummaryrefslogtreecommitdiffhomepage
path: root/parsing/g_ltac.ml4
diff options
context:
space:
mode:
Diffstat (limited to 'parsing/g_ltac.ml4')
-rw-r--r--parsing/g_ltac.ml47
1 files changed, 5 insertions, 2 deletions
diff --git a/parsing/g_ltac.ml4 b/parsing/g_ltac.ml4
index 428c9efb7..4b954b174 100644
--- a/parsing/g_ltac.ml4
+++ b/parsing/g_ltac.ml4
@@ -117,8 +117,10 @@ GEXTEND Gram
| IDENT "ipattern"; ":"; ipat = simple_intropattern -> IntroPattern ipat
| a = may_eval_arg -> a
| r = reference -> Reference r
- | a = tactic_atom -> a
- | c = Constr.constr -> ConstrMayEval (ConstrTerm c) ] ]
+ | c = Constr.constr -> ConstrMayEval (ConstrTerm c)
+ (* Unambigous entries: tolerated w/o "ltac:" modifier *)
+ | id = METAIDENT -> MetaIdArg (loc,id)
+ | "()" -> TacVoid ] ]
;
may_eval_arg:
[ [ c = constr_eval -> ConstrMayEval c
@@ -141,6 +143,7 @@ GEXTEND Gram
;
tactic_atom:
[ [ id = METAIDENT -> MetaIdArg (loc,id)
+ | n = integer -> Integer n
| "()" -> TacVoid ] ]
;
match_key: