diff options
| author | Pierre-Marie Pédrot | 2020-11-15 00:20:36 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2020-11-15 00:20:36 +0100 |
| commit | a118b906b3da7cb2e03a72f7a8079a7fc99c6f84 (patch) | |
| tree | 9db2c41ab6ef97e9d80375b7dca1ff1ed1c5f111 /plugins/ltac | |
| parent | a237a3d2c9de704873e1e20fa38282cf3562cddf (diff) | |
| parent | 8ed2d808b2c9caf022b5e22bb43f2ca6876ebd1b (diff) | |
Merge PR #13339: In -noinit mode, add support for Proof using, using is not a keyword.
Ack-by: SkySkimmer
Reviewed-by: herbelin
Ack-by: ppedrot
Diffstat (limited to 'plugins/ltac')
| -rw-r--r-- | plugins/ltac/g_ltac.mlg | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/ltac/g_ltac.mlg b/plugins/ltac/g_ltac.mlg index c54f8ffa78..c2e95c45f9 100644 --- a/plugins/ltac/g_ltac.mlg +++ b/plugins/ltac/g_ltac.mlg @@ -329,11 +329,11 @@ GRAMMAR EXTEND Gram ; command: [ [ IDENT "Proof"; "with"; ta = Pltac.tactic; - l = OPT [ "using"; l = G_vernac.section_subset_expr -> { l } ] -> + l = OPT [ IDENT "using"; l = G_vernac.section_subset_expr -> { l } ] -> { Vernacexpr.VernacProof (Some (in_tac ta), l) } - | IDENT "Proof"; "using"; l = G_vernac.section_subset_expr; - ta = OPT [ "with"; ta = Pltac.tactic -> { in_tac ta } ] -> - { Vernacexpr.VernacProof (ta,Some l) } ] ] + | IDENT "Proof"; IDENT "using"; l = G_vernac.section_subset_expr; + "with"; ta = Pltac.tactic -> + { Vernacexpr.VernacProof (Some (in_tac ta),Some l) } ] ] ; hint: [ [ IDENT "Extern"; n = natural; c = OPT Constr.constr_pattern ; "=>"; |
