aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2017-08-01 16:56:27 +0200
committerPierre-Marie Pédrot2017-08-01 20:33:18 +0200
commit73ecd7e2f0136234f73f405a569858f2b0ecee9b (patch)
tree048bcde21d51d4bdf16f057b40b6aa70206882af
parentc3be78f96b91a042944f9bee66bf0ea8d929a37d (diff)
Fix parsing of fresh ident antiquotations.
-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: