added operator precedence in the doc
authorfabien <fabien@93ef8e89-cb99-4229-a87c-7fa0fa45744b>
Mon, 14 Dec 2009 19:23:55 +0000 (19:23 +0000)
committerfabien <fabien@93ef8e89-cb99-4229-a87c-7fa0fa45744b>
Mon, 14 Dec 2009 19:23:55 +0000 (19:23 +0000)
git-svn-id: http://svn.twig-project.org/trunk@183 93ef8e89-cb99-4229-a87c-7fa0fa45744b

doc/02-Twig-for-Template-Designers.markdown

index 16047ed..83ce5bb 100644 (file)
@@ -684,6 +684,10 @@ Twig allows basic expressions everywhere. These work very similar to regular
 PHP and even if you're not working with PHP you should feel comfortable with
 it.
 
+The operator precedence is as follows, with the lowest-precedence operators
+listed first: `or`, `and`, `==`, `!=`, `<`, `>`, `>=`, `<=`, `in`, `+`, `-`,
+`~`, `*`, `/`, `%`, `//`, `not`, and `[`.
+
 ### Literals
 
 The simplest form of expressions are literals. Literals are representations