diff options
| author | Hugo Herbelin | 2020-01-04 12:53:09 +0100 |
|---|---|---|
| committer | Hugo Herbelin | 2020-02-22 01:52:29 +0100 |
| commit | b5bd769d725495d8c78c04d6721742e602a9b539 (patch) | |
| tree | d14b8a166f89e6eda6b4cee000677f1c83a34134 /vernac/metasyntax.ml | |
| parent | e1f2a1b97bb61e9c5ebaffda55a3be1ea3267c6b (diff) | |
Preparing to simplifying the structure of type "tolerability".
The "Any" case was not reached formerly for ETPattern and ETConstr as
far as I can see. So there should be no change of semantics.
Diffstat (limited to 'vernac/metasyntax.ml')
| -rw-r--r-- | vernac/metasyntax.ml | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/vernac/metasyntax.ml b/vernac/metasyntax.ml index 69d9bd4c41..3bfa5cb683 100644 --- a/vernac/metasyntax.ml +++ b/vernac/metasyntax.ml @@ -745,15 +745,13 @@ let recompute_assoc typs = let open Gramlib.Gramext in let pr_arg_level from (lev,typ) = let pplev = function - | (n,L) when Int.equal n from -> str "at next level" - | (n,E) -> str "at level " ++ int n - | (n,L) -> str "at level below " ++ int n - | (n,Prec m) when Int.equal m n -> str "at level " ++ int n - | (n,_) -> str "Unknown level" in - Ppvernac.pr_set_entry_type (fun _ -> (*TO CHECK*) mt()) typ ++ - (match typ with - | ETConstr _ | ETPattern _ -> spc () ++ pplev lev - | _ -> mt ()) + | (n,L) when Int.equal n from -> spc () ++ str "at next level" + | (n,E) -> spc () ++ str "at level " ++ int n + | (n,L) -> spc () ++ str "at level below " ++ int n + | (n,Prec m) when Int.equal m n -> spc () ++ str "at level " ++ int n + | (n,Prec _) -> assert false + | (n,Any) -> mt () in + Ppvernac.pr_set_entry_type (fun _ -> (*TO CHECK*) mt()) typ ++ pplev lev let pr_level ntn (from,fromlevel,args,typs) = (match from with InConstrEntry -> mt () | InCustomEntry s -> str "in " ++ str s ++ spc()) ++ |
