Added support for brackets in boolean expressions (#165)

* added support for brackets in boolean expressions

* more descriptive error messages

* use array slices

* added test for nested expressions

* removed brackets validation step

* address code review comments

* added doc comment

* simplify expression spec

* fixed docs
This commit is contained in:
Ilya Puchka
2018-09-21 22:07:28 +03:00
committed by GitHub
parent 7ed95aec91
commit 2c3962a3de
4 changed files with 140 additions and 29 deletions

View File

@@ -149,6 +149,19 @@ Will be treated as:
one or (two and three)
You can use parentheses to change operator precedence. For example:
.. code-block:: html+django
{% if (one or two) and three %}
Will be treated as:
.. code-block:: text
(one or two) and three
``==`` operator
"""""""""""""""