Debian Codegraph @

tests/languages/stylus/keyword_feature.test

raw
1 for i in 1..5
2 if a == 3
3 z-index: 1 unless @z-index;
4 return pair[1] if pair[0] == key for pair in hash
5 if url == "http://example.com" // comment
6
7 ----------------------------------------------------
8
9 [
10 ["statement", [
11 ["keyword", "for"],
12 " i ",
13 ["operator", "in"],
14 ["number", "1"],
15 ["operator", ".."],
16 ["number", "5"]
17 ]],
18 ["statement", [
19 ["keyword", "if"],
20 " a ",
21 ["operator", "=="],
22 ["number", "3"]
23 ]],
24 ["property-declaration", [
25 ["property", ["z-index"]],
26 ["punctuation", ":"],
27 ["number", "1"],
28 ["keyword", "unless"],
29 ["keyword", "@z-index"],
30 ["punctuation", ";"]
31 ]],
32 ["statement", [
33 ["keyword", "return"], " pair",
34 ["punctuation", "["], ["number", "1"], ["punctuation", "]"],
35 ["keyword", "if"], " pair",
36 ["punctuation", "["], ["number", "0"], ["punctuation", "]"],
37 ["operator", "=="], " key ",
38 ["keyword", "for"], " pair ",
39 ["operator", "in"], " hash"
40 ]],
41 ["statement", [
42 ["keyword", "if"],
43 " url ",
44 ["operator", "=="],
45 ["string", "\"http://example.com\""],
46 ["comment", "// comment"]
47 ]]
48 ]
49
50 ----------------------------------------------------
51
52 Checks for statements and keywords.