aboutsummaryrefslogtreecommitdiff
path: root/interp/notation_term.ml
diff options
context:
space:
mode:
authorcoqbot-app[bot]2020-11-23 15:06:48 +0000
committerGitHub2020-11-23 15:06:48 +0000
commit5fce39e0078935662fd6fb9b8e2ee6b0da60b3ab (patch)
treeefc105da1f224ef87400e4bab4779670b8057827 /interp/notation_term.ml
parent94d579844817edcbb2454dd9dc79071b2cd1d12a (diff)
parent87c46c50506089ba16bdd7afd7e795ee21033319 (diff)
Merge PR #11841: Distinguishing entry "ident" from entry "name" in term notations.
Reviewed-by: jfehrle Reviewed-by: gares Reviewed-by: Zimmi48 Reviewed-by: maximedenes
Diffstat (limited to 'interp/notation_term.ml')
-rw-r--r--interp/notation_term.ml5
1 files changed, 4 insertions, 1 deletions
diff --git a/interp/notation_term.ml b/interp/notation_term.ml
index 29db23cc54..c541a19bfd 100644
--- a/interp/notation_term.ml
+++ b/interp/notation_term.ml
@@ -67,7 +67,8 @@ type extended_subscopes = Constrexpr.notation_entry_level * subscopes
type constr_as_binder_kind =
| AsIdent
- | AsIdentOrPattern
+ | AsName
+ | AsNameOrPattern
| AsStrictPattern
type notation_binder_source =
@@ -76,6 +77,8 @@ type notation_binder_source =
| NtnParsedAsPattern of bool
(* This accepts only ident *)
| NtnParsedAsIdent
+ (* This accepts only name *)
+ | NtnParsedAsName
(* This accepts ident, or pattern, or both *)
| NtnBinderParsedAsConstr of constr_as_binder_kind
(* This accepts ident, _, and quoted pattern *)