diff options
| author | Maxime Dénès | 2020-06-16 17:09:40 +0200 |
|---|---|---|
| committer | Maxime Dénès | 2020-07-03 13:13:02 +0200 |
| commit | 53e19f76624b7a18792af799e970e9478f8e90a9 (patch) | |
| tree | b852fd1e116ff72748210a11bc95298453ac2e4d /doc/sphinx/user-extensions/syntax-extensions.rst | |
| parent | 33581635d3ad525e1d5c2fb2587be345a7e77009 (diff) | |
Fix #11121: Simultaneous definition of term and notation in custom grammar
Diffstat (limited to 'doc/sphinx/user-extensions/syntax-extensions.rst')
| -rw-r--r-- | doc/sphinx/user-extensions/syntax-extensions.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/sphinx/user-extensions/syntax-extensions.rst b/doc/sphinx/user-extensions/syntax-extensions.rst index 3c92206fd2..fcd5ecc070 100644 --- a/doc/sphinx/user-extensions/syntax-extensions.rst +++ b/doc/sphinx/user-extensions/syntax-extensions.rst @@ -368,13 +368,14 @@ a :token:`decl_notations` clause after the definition of the (co)inductive type (co)recursive term (or after the definition of each of them in case of mutual definitions). The exact syntax is given by :n:`@decl_notation` for inductive, co-inductive, recursive and corecursive definitions and in :ref:`record-types` -for records. +for records. Note that only syntax modifiers that do not require to add or +change a parsing rule are accepted. .. insertprodn decl_notations decl_notation .. prodn:: decl_notations ::= where @decl_notation {* and @decl_notation } - decl_notation ::= @string := @one_term {? ( only parsing ) } {? : @scope_name } + decl_notation ::= @string := @one_term {? ( {+, @syntax_modifier } ) } {? : @scope_name } Here are examples: |
