aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Théo Zimmermann <theo.zimmermann@univ-paris-diderot.fr>2018-01-05 12:57:56 +0100
committerGravatar Théo Zimmermann <theo.zimmermann@univ-paris-diderot.fr>2018-01-05 15:34:23 +0100
commit3a447d83226c4591e796e44933dad8278d97d683 (patch)
tree7c6f452b7bc4900d22767d005b0b3d29f07c83fd /plugins
parent2d6e395dead61a49ede6208bc40e16b4b8e68ce4 (diff)
Brackets support single numbered goal selectors.
This allows to focus on a sub-goal other than the first one without resorting to the `Focus` command.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ltac/g_ltac.ml43
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/ltac/g_ltac.ml4 b/plugins/ltac/g_ltac.ml4
index ebf6e450b..cc7ce339b 100644
--- a/plugins/ltac/g_ltac.ml4
+++ b/plugins/ltac/g_ltac.ml4
@@ -327,7 +327,8 @@ GEXTEND Gram
| IDENT "all"; ":" -> SelectAll ] ]
;
tactic_mode:
- [ [ g = OPT toplevel_selector; tac = G_vernac.query_command -> tac g ] ]
+ [ [ g = OPT toplevel_selector; tac = G_vernac.query_command -> tac g
+ | g = OPT toplevel_selector; "{" -> Vernacexpr.VernacSubproof g ] ]
;
command:
[ [ IDENT "Proof"; "with"; ta = Pltac.tactic;