Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2199)

Side by Side Diff: lib/src/prism/tests/languages/twig/keyword_feature.test

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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.
OLDNEW
« no previous file with comments | « lib/src/prism/tests/languages/twig/comment_feature.test ('k') | lib/src/prism/tests/languages/twig/number_feature.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698