From 3a447d83226c4591e796e44933dad8278d97d683 Mon Sep 17 00:00:00 2001 From: Théo Zimmermann Date: Fri, 5 Jan 2018 12:57:56 +0100 Subject: 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. --- plugins/ltac/g_ltac.ml4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/ltac/g_ltac.ml4 b/plugins/ltac/g_ltac.ml4 index ebf6e450b1..cc7ce339b2 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; -- cgit v1.2.3