aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2020-02-19 14:12:51 +0100
committerPierre-Marie Pédrot2020-02-19 14:20:32 +0100
commit5360fb1202375d90adde5c8ba6700098e57bed53 (patch)
tree72608e908e70ae879d1387c248e97de11404d03b
parent43c3c7d6f62a9bee4772242c27fbafd54770d271 (diff)
Fix #11552: Ltac2 breaks query commands during proofs.
Actually, callers of the Pvernac.register_proof_mode function have to manually register the parsing of vernacular queries themselves. This probably qualifies as an oversight from myself.
-rw-r--r--test-suite/bugs/closed/bug_11552.v9
-rw-r--r--user-contrib/Ltac2/g_ltac2.mlg6
2 files changed, 15 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_11552.v b/test-suite/bugs/closed/bug_11552.v
new file mode 100644
index 0000000000..189b1d9d8a
--- /dev/null
+++ b/test-suite/bugs/closed/bug_11552.v
@@ -0,0 +1,9 @@
+From Ltac2 Require Import Ltac2.
+
+Goal True.
+Proof.
+ Search unit.
+ (* Unbound constructor Search *)
+ Check tt.
+ (* Unbound constructor Check *)
+Abort.
diff --git a/user-contrib/Ltac2/g_ltac2.mlg b/user-contrib/Ltac2/g_ltac2.mlg
index c1bd585f3f..d05640f22d 100644
--- a/user-contrib/Ltac2/g_ltac2.mlg
+++ b/user-contrib/Ltac2/g_ltac2.mlg
@@ -948,6 +948,12 @@ VERNAC { tac2mode } EXTEND VernacLtac2
fun ~pstate -> Tac2entries.call ~pstate ~default t }
END
+GRAMMAR EXTEND Gram
+ GLOBAL: tac2mode;
+ tac2mode:
+ [ [ tac = G_vernac.query_command -> { tac None } ] ];
+END
+
{
open Stdarg