~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/tests/languages/stylus/keyword_feature.test

  • Committer: Didier Roche
  • Date: 2016-05-10 23:09:11 UTC
  • Revision ID: didier.roche@canonical.com-20160510230911-c7xr490zrj3yrzxd
New version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
6
----------------------------------------------------
 
7
 
 
8
[
 
9
        ["statement", [
 
10
                ["keyword", "for"],
 
11
                " i ",
 
12
                ["operator", "in"],
 
13
                ["number", "1"],
 
14
                ["operator", ".."],
 
15
                ["number", "5"]
 
16
        ]],
 
17
        ["statement", [
 
18
                ["keyword", "if"],
 
19
                " a ",
 
20
                ["operator", "=="],
 
21
                ["number", "3"]
 
22
        ]],
 
23
        ["property-declaration", [
 
24
                ["property", ["z-index"]],
 
25
                ["punctuation", ":"],
 
26
                ["number", "1"],
 
27
                ["keyword", "unless"],
 
28
                ["keyword", "@z-index"],
 
29
                ["punctuation", ";"]
 
30
        ]],
 
31
        ["statement", [
 
32
                ["keyword", "return"], " pair",
 
33
                ["punctuation", "["], ["number", "1"], ["punctuation", "]"],
 
34
                ["keyword", "if"], " pair",
 
35
                ["punctuation", "["], ["number", "0"], ["punctuation", "]"],
 
36
                ["operator", "=="], " key ",
 
37
                ["keyword", "for"], " pair ",
 
38
                ["operator", "in"], " hash"
 
39
        ]]
 
40
]
 
41
 
 
42
----------------------------------------------------
 
43
 
 
44
Checks for statements and keywords.
 
 
b'\\ No newline at end of file'