aboutsummaryrefslogtreecommitdiff
path: root/doc/sphinx
diff options
context:
space:
mode:
authorHugo Herbelin2020-11-14 15:32:27 +0100
committerHugo Herbelin2020-11-17 16:19:39 +0100
commit5e87ba237e2219527095de0aba8744e5c791ac85 (patch)
treee52a5b43d157ca839c47be751b86b4eb19ba8bd9 /doc/sphinx
parent748458d5abf3daa57ec11aef7994aa04d9a6a2e7 (diff)
Documenting priority given to most recently declared/imported notations.
Diffstat (limited to 'doc/sphinx')
-rw-r--r--doc/sphinx/user-extensions/syntax-extensions.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/sphinx/user-extensions/syntax-extensions.rst b/doc/sphinx/user-extensions/syntax-extensions.rst
index 99b9754e5e..2e44955b03 100644
--- a/doc/sphinx/user-extensions/syntax-extensions.rst
+++ b/doc/sphinx/user-extensions/syntax-extensions.rst
@@ -323,7 +323,6 @@ at the time of use of the notation.
scope. Obviously, expressions printed by means of such extra
printing rules will not be reparsed to the same form.
-
.. note::
When several notations can be used to print a given term, the
@@ -337,6 +336,13 @@ at the time of use of the notation.
Check (0 < 1 /\ 1 < 2).
+ When several notations match the same subterm, or incomparable
+ subterms of the term to print, the notation declared most recently
+ is selected. Moreover, reimporting a library or module declares the
+ notations of this library or module again. If the notation is in a
+ scope (see :ref:`Scopes`), either the scope has to be opened or a
+ delimiter has to exist in the scope for the notation to be usable.
+
The Infix command
~~~~~~~~~~~~~~~~~~