OLD | NEW |
(Empty) | |
| 1 {% for foo in bar if baz %}{% endfor %} |
| 2 {%- if foo() -%}{%- endif -%} |
| 3 {% macro foobar() %}{% endmacro %} |
| 4 {{ foo is even or bar is odd }} |
| 5 |
| 6 ---------------------------------------------------- |
| 7 |
| 8 [ |
| 9 ["tag", [ |
| 10 ["ld", [["punctuation", "{%"], ["keyword", "for"]]], |
| 11 ["property", "foo"], |
| 12 ["operator", "in"], ["property", "bar"], |
| 13 ["keyword", "if"], ["property", "baz"], |
| 14 ["rd", [["punctuation", "%}"]]] |
| 15 ]], |
| 16 ["tag", [ |
| 17 ["ld", [["punctuation", "{%"], ["keyword", "endfor"]]], |
| 18 ["rd", [["punctuation", "%}"]]] |
| 19 ]], |
| 20 ["tag", [ |
| 21 ["ld", [["punctuation", "{%-"], ["keyword", "if"]]], |
| 22 ["property", "foo"], ["punctuation", "("], ["punctuation", ")"], |
| 23 ["rd", [["punctuation", "-%}"]]] |
| 24 ]], |
| 25 ["tag", [ |
| 26 ["ld", [["punctuation", "{%-"], ["keyword", "endif"]]], |
| 27 ["rd", [["punctuation", "-%}"]]] |
| 28 ]], |
| 29 ["tag", [ |
| 30 ["ld", [["punctuation", "{%"], ["keyword", "macro"]]], |
| 31 ["property", "foobar"], ["punctuation", "("], ["punctuation", ")
"], |
| 32 ["rd", [["punctuation", "%}"]]] |
| 33 ]], |
| 34 ["tag", [ |
| 35 ["ld", [["punctuation", "{%"], ["keyword", "endmacro"]]], |
| 36 ["rd", [["punctuation", "%}"]]] |
| 37 ]], |
| 38 ["tag", [ |
| 39 ["ld", [["punctuation", "{{"]]], |
| 40 ["property", "foo"], |
| 41 ["operator", "is"], |
| 42 ["keyword", "even"], |
| 43 ["operator", "or"], |
| 44 ["property", "bar"], |
| 45 ["operator", "is"], |
| 46 ["keyword", "odd"], |
| 47 ["rd", [["punctuation", "}}"]]] |
| 48 ]] |
| 49 ] |
| 50 |
| 51 ---------------------------------------------------- |
| 52 |
| 53 Checks for keywords. |
OLD | NEW |