diff options
| author | Pierre-Marie Pédrot | 2017-08-01 16:56:27 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2017-08-01 20:33:18 +0200 |
| commit | 73ecd7e2f0136234f73f405a569858f2b0ecee9b (patch) | |
| tree | 048bcde21d51d4bdf16f057b40b6aa70206882af /src | |
| parent | c3be78f96b91a042944f9bee66bf0ea8d929a37d (diff) | |
Fix parsing of fresh ident antiquotations.
Diffstat (limited to 'src')
| -rw-r--r-- | src/g_ltac2.ml4 | 5 |
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: |
