diff options
| author | Jim Fehrle | 2020-12-30 12:39:53 -0800 |
|---|---|---|
| committer | Jim Fehrle | 2021-01-02 22:34:15 -0800 |
| commit | 46c28054eb404175e5ba9485c3b5efbfe1b81619 (patch) | |
| tree | bc333811872b07448b765481b7fab486aeb97323 /plugins/ltac | |
| parent | 66e24a2365b235bd35cbba71adce30dccea60b55 (diff) | |
Deprecate "at ... with ..." in change tactic
(use "with ... at ..." instead)
Diffstat (limited to 'plugins/ltac')
| -rw-r--r-- | plugins/ltac/g_tactic.mlg | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/ltac/g_tactic.mlg b/plugins/ltac/g_tactic.mlg index 43957bbde5..cb430efb40 100644 --- a/plugins/ltac/g_tactic.mlg +++ b/plugins/ltac/g_tactic.mlg @@ -182,6 +182,11 @@ let merge_occurrences loc cl = function in (Some p, ans) +let deprecated_conversion_at_with = + CWarnings.create + ~name:"conversion_at_with" ~category:"deprecated" + (fun () -> Pp.str "The syntax [at ... with ...] is deprecated. Use [with ... at ...] instead.") + (* Auxiliary grammar rules *) open Pvernac.Vernac_ @@ -230,7 +235,8 @@ GRAMMAR EXTEND Gram [ [ c = constr -> { (None, c) } | c1 = constr; "with"; c2 = constr -> { (Some (AllOccurrences,c1),c2) } | c1 = constr; "at"; occs = occs_nums; "with"; c2 = constr -> - { (Some (occs,c1), c2) } ] ] + { deprecated_conversion_at_with (); (* 8.14 *) + (Some (occs,c1), c2) } ] ] ; occs_nums: [ [ nl = LIST1 nat_or_var -> { OnlyOccurrences nl } |
