From fb511950596d09112c5a2a46a1cfeecf4b05c45d Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 12 Jan 2019 02:46:44 +0100 Subject: [PATCH] added missing information in the precedence paragraph --- doc/templates.rst | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/templates.rst b/doc/templates.rst index 23f1b8b7e..87a153e84 100644 --- a/doc/templates.rst +++ b/doc/templates.rst @@ -555,11 +555,12 @@ even if you're not working with PHP you should feel comfortable with it. .. note:: - The operator precedence is as follows, with the lowest-precedence - operators listed first: ``b-and``, ``b-xor``, ``b-or``, ``or``, ``and``, - ``==``, ``!=``, ``<``, ``>``, ``>=``, ``<=``, ``in``, ``matches``, - ``starts with``, ``ends with``, ``..``, ``+``, ``-``, ``~``, ``*``, ``/``, - ``//``, ``%``, ``is``, ``**``, ``|``, ``[]``, and ``.``: + The operator precedence is as follows, with the lowest-precedence operators + listed first: ``?:`` (ternary operator), ``b-and``, ``b-xor``, ``b-or``, + ``or``, ``and``, ``==``, ``!=``, ``<``, ``>``, ``>=``, ``<=``, ``in``, + ``matches``, ``starts with``, ``ends with``, ``..``, ``+``, ``-``, ``~``, + ``*``, ``/``, ``//``, ``%``, ``is`` (tests), ``**``, ``??``, ``|`` + (filters), ``[]``, and ``.``. .. code-block:: jinja