From 1dc3c4beaf61608b69f532adec206b581089bbe5 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 8 May 2012 08:32:32 +0200 Subject: [PATCH] added documentation for the bitwise operators (closes #707) --- doc/templates.rst | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/templates.rst b/doc/templates.rst index bb2e435..a3aa39a 100644 --- a/doc/templates.rst +++ b/doc/templates.rst @@ -459,9 +459,9 @@ 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: ``&``, ``^``, ``|``, ``or``, ``and``, ``==``, - ``!=``, ``<``, ``>``, ``>=``, ``<=``, ``in``, ``..``, ``+``, ``-``, ``~``, - ``*``, ``/``, ``//``, ``%``, ``is``, and ``**``. + operators listed first: ``b-and``, ``b-xor``, ``b-or``, ``or``, ``and``, + ``==``, ``!=``, ``<``, ``>``, ``>=``, ``<=``, ``in``, ``..``, ``+``, + ``-``, ``~``, ``*``, ``/``, ``//``, ``%``, ``is``, and ``**``. Literals ~~~~~~~~ @@ -554,6 +554,10 @@ You can combine multiple expressions with the following operators: * ``(expr)``: Groups an expression. +.. note:: + + Twig also support bitwise operators (``b-and``, ``b-xor``, and ``b-or``). + Comparisons ~~~~~~~~~~~ -- 1.7.2.5