Skip to content

Commit 454ffdb

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: 🎨 Fix precedence table rendering
2 parents a547700 + 0742e26 commit 454ffdb

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
@@ -411,26 +411,38 @@ parentheses in your expressions (e.g. ``(1 + 2) * 4`` or ``1 + (2 * 4)``.
411411
The following table summarizes the operators and their associativity from the
412412
**highest to the lowest precedence**:
413413

414-
======================================================= =============
415-
Operators associativity
416-
======================================================= =============
417-
``-``, ``+`` (unary operators that add the number sign) none
418-
``**`` right
419-
``*``, ``/``, ``%`` left
420-
``not``, ``!`` none
421-
``~`` left
422-
``+``, ``-`` left
423-
``..`` left
424-
``==``, ``===``, ``!=``, ``!==``, \ left
425-
``<``, ``>``, ``>=``, ``<=``, \
426-
``not in``, ``in``, ``contains``, \
427-
``starts with``, ``ends with``, ``matches``
428-
``&`` left
429-
``^`` left
430-
``|`` left
431-
``and``, ``&&`` left
432-
``or``, ``||`` left
433-
======================================================= =============
414+
+----------------------------------------------------------+---------------+
415+
| Operators | Associativity |
416+
+==========================================================+===============+
417+
| ``-`` , ``+`` (unary operators that add the number sign) | none |
418+
+----------------------------------------------------------+---------------+
419+
| ``**`` | right |
420+
+----------------------------------------------------------+---------------+
421+
| ``*``, ``/``, ``%`` | left |
422+
+----------------------------------------------------------+---------------+
423+
| ``not``, ``!`` | none |
424+
+----------------------------------------------------------+---------------+
425+
| ``~`` | left |
426+
+----------------------------------------------------------+---------------+
427+
| ``+``, ``-`` | left |
428+
+----------------------------------------------------------+---------------+
429+
| ``..`` | left |
430+
+----------------------------------------------------------+---------------+
431+
| ``==``, ``===``, ``!=``, ``!==``, | left |
432+
| ``<``, ``>``, ``>=``, ``<=``, | |
433+
| ``not in``, ``in``, ``contains``, | |
434+
| ``starts with``, ``ends with``, ``matches`` | |
435+
+----------------------------------------------------------+---------------+
436+
| ``&`` | left |
437+
+----------------------------------------------------------+---------------+
438+
| ``^`` | left |
439+
+----------------------------------------------------------+---------------+
440+
| ``|`` | left |
441+
+----------------------------------------------------------+---------------+
442+
| ``and``, ``&&`` | left |
443+
+----------------------------------------------------------+---------------+
444+
| ``or``, ``||`` | left |
445+
+----------------------------------------------------------+---------------+
434446

435447
Built-in Objects and Variables
436448
------------------------------

0 commit comments

Comments
 (0)