aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/g_ltac2.ml45
1 files changed, 3 insertions, 2 deletions
diff --git a/src/g_ltac2.ml4 b/src/g_ltac2.ml4
index b058680645..a09e99aa6b 100644
--- a/src/g_ltac2.ml4
+++ b/src/g_ltac2.ml4
@@ -335,8 +335,9 @@ GEXTEND Gram
| "[="; tc = intropatterns; "]" -> QIntroInjection tc ] ]
;
naming_intropattern:
- [ [ LEFTQMARK; prefix = ident_or_anti -> QIntroFresh prefix
- | LEFTQMARK -> QIntroAnonymous
+ [ [ LEFTQMARK; id = Prim.ident -> QIntroFresh (QExpr id)
+ | "?$"; id = Prim.ident -> QIntroFresh (QAnti (Loc.tag ~loc:!@loc id))
+ | "?" -> QIntroAnonymous
| id = ident_or_anti -> QIntroIdentifier id ] ]
;
nonsimple_intropattern: