Skip to content

Commit 38a5188

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: 🎨 Fix precedence table rendering
2 parents f305673 + 454ffdb commit 38a5188

File tree

1 file changed

+32
-20
lines changed

1 file changed

+32
-20
lines changed

reference/formats/expression_language.rst

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -445,26 +445,38 @@ parentheses in your expressions (e.g. ``(1 + 2) * 4`` or ``1 + (2 * 4)``.
445445
The following table summarizes the operators and their associativity from the
446446
**highest to the lowest precedence**:
447447

448-
======================================================= =============
449-
Operators associativity
450-
======================================================= =============
451-
``-``, ``+`` (unary operators that add the number sign) none
452-
``**`` right
453-
``*``, ``/``, ``%`` left
454-
``not``, ``!`` none
455-
``~`` left
456-
``+``, ``-`` left
457-
``..`` left
458-
``==``, ``===``, ``!=``, ``!==``, \ left
459-
``<``, ``>``, ``>=``, ``<=``, \
460-
``not in``, ``in``, ``contains``, \
461-
``starts with``, ``ends with``, ``matches``
462-
``&`` left
463-
``^`` left
464-
``|`` left
465-
``and``, ``&&`` left
466-
``or``, ``||`` left
467-
======================================================= =============
448+
+----------------------------------------------------------+---------------+
449+
| Operators | Associativity |
450+
+==========================================================+===============+
451+
| ``-`` , ``+`` (unary operators that add the number sign) | none |
452+
+----------------------------------------------------------+---------------+
453+
| ``**`` | right |
454+
+----------------------------------------------------------+---------------+
455+
| ``*``, ``/``, ``%`` | left |
456+
+----------------------------------------------------------+---------------+
457+
| ``not``, ``!`` | none |
458+
+----------------------------------------------------------+---------------+
459+
| ``~`` | left |
460+
+----------------------------------------------------------+---------------+
461+
| ``+``, ``-`` | left |
462+
+----------------------------------------------------------+---------------+
463+
| ``..`` | left |
464+
+----------------------------------------------------------+---------------+
465+
| ``==``, ``===``, ``!=``, ``!==``, | left |
466+
| ``<``, ``>``, ``>=``, ``<=``, | |
467+
| ``not in``, ``in``, ``contains``, | |
468+
| ``starts with``, ``ends with``, ``matches`` | |
469+
+----------------------------------------------------------+---------------+
470+
| ``&`` | left |
471+
+----------------------------------------------------------+---------------+
472+
| ``^`` | left |
473+
+----------------------------------------------------------+---------------+
474+
| ``|`` | left |
475+
+----------------------------------------------------------+---------------+
476+
| ``and``, ``&&`` | left |
477+
+----------------------------------------------------------+---------------+
478+
| ``or``, ``||`` | left |
479+
+----------------------------------------------------------+---------------+
468480

469481
Built-in Objects and Variables
470482
------------------------------

0 commit comments

Comments
 (0)