diff options
author | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2017-07-04 14:38:48 +0200 |
---|---|---|
committer | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2017-07-04 14:52:37 +0200 |
commit | 8155ba54ae39dd71c6b8ddff2b2b7353dde9aff8 (patch) | |
tree | 94b2b61cd034873c537b7991cdbe6312fdad2fb3 /interp/notation.ml | |
parent | 3e0334dd48b5d0b03046d0aff1a82867dc98d656 (diff) | |
parent | e0ad7ac11b97f089fa862d2e34409e0a1d77d3a1 (diff) |
Merge branch 'v8.6'
Diffstat (limited to 'interp/notation.ml')
-rw-r--r-- | interp/notation.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/interp/notation.ml b/interp/notation.ml index f2b99513a..4067a6b94 100644 --- a/interp/notation.ml +++ b/interp/notation.ml @@ -582,11 +582,12 @@ let interpretation_eq (vars1, t1) (vars2, t2) = List.equal var_attributes_eq vars1 vars2 && Notation_ops.eq_notation_constr (List.map fst vars1, List.map fst vars2) t1 t2 -let exists_notation_in_scope scopt ntn r = +let exists_notation_in_scope scopt ntn onlyprint r = let scope = match scopt with Some s -> s | None -> default_scope in try let sc = String.Map.find scope !scope_map in let n = String.Map.find ntn sc.notations in + onlyprint = n.not_onlyprinting && interpretation_eq n.not_interp r with Not_found -> false |