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

Side by Side Diff: lib/src/prism/tests/languages/bash/arithmetic_environment_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 (( 4 + 5 ))
2 $((5 * 7))
3 "foo $((5 * 7)) bar"
4 for (( NUM=1 ; NUM<=1000 ; NUM++ ))
5
6 ----------------------------------------------------
7
8 [
9 ["variable", [
10 ["punctuation", "(("],
11 ["number", "4"],
12 ["operator", "+"],
13 ["number", "5"],
14 ["punctuation", "))"]
15 ]],
16 ["variable", [
17 ["variable", "$(("],
18 ["number", "5"],
19 ["operator", "*"],
20 ["number", "7"],
21 ["variable", "))"]
22 ]],
23 ["string", [
24 "\"foo ",
25 ["variable", [
26 ["variable", "$(("],
27 ["number", "5"],
28 ["operator", "*"],
29 ["number", "7"],
30 ["variable", "))"]
31 ]],
32 " bar\""
33 ]],
34 ["keyword", "for"],
35 ["variable", [
36 ["punctuation", "(("],
37 " NUM",
38 ["operator", "="],
39 ["number", "1"],
40 ["punctuation", ";"],
41 " NUM",
42 ["operator", "<="],
43 ["number", "1000"],
44 ["punctuation", ";"],
45 " NUM",
46 ["operator", "++"],
47 ["punctuation", "))"]
48 ]]
49 ]
50
51 ----------------------------------------------------
52
53 Checks arithmetic environments
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698