~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/tests/languages/parser/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
^case
 
2
^eval
 
3
^for
 
4
^if
 
5
^switch
 
6
^throw
 
7
 
 
8
@BASE
 
9
@CLASS
 
10
@GET
 
11
@GET_DEFAULT
 
12
@OPTIONS
 
13
@SET_DEFAULT
 
14
@USE
 
15
 
 
16
(^eval(2+2))
 
17
 
 
18
<div class="^if($foo){bar}{baz}">
 
19
 
 
20
----------------------------------------------------
 
21
 
 
22
[
 
23
        ["keyword", "^case"],
 
24
        ["keyword", "^eval"],
 
25
        ["keyword", "^for"],
 
26
        ["keyword", "^if"],
 
27
        ["keyword", "^switch"],
 
28
        ["keyword", "^throw"],
 
29
 
 
30
        ["keyword", "@BASE"],
 
31
        ["keyword", "@CLASS"],
 
32
        ["keyword", "@GET"],
 
33
        ["keyword", "@GET_DEFAULT"],
 
34
        ["keyword", "@OPTIONS"],
 
35
        ["keyword", "@SET_DEFAULT"],
 
36
        ["keyword", "@USE"],
 
37
 
 
38
        ["expression", [
 
39
                ["punctuation", "("],
 
40
                ["keyword", "^eval"],
 
41
                ["punctuation", "("],
 
42
                ["number", "2"], ["operator", "+"], ["number", "2"],
 
43
                ["punctuation", ")"],
 
44
                ["punctuation", ")"]
 
45
        ]],
 
46
 
 
47
        ["tag", [
 
48
                ["tag", [
 
49
                        ["punctuation", "<"],
 
50
                        "div"
 
51
                ]],
 
52
                ["attr-name", ["class"]],
 
53
                ["attr-value", [
 
54
                        ["punctuation", "="],
 
55
                        ["punctuation", "\""],
 
56
                        ["keyword", "^if"],
 
57
                        ["expression", [
 
58
                                ["punctuation", "("], ["variable", ["$foo"]], ["punctuation", ")"]
 
59
                        ]],
 
60
                        ["parser-punctuation", "{"], "bar", ["parser-punctuation", "}"],
 
61
                        ["parser-punctuation", "{"], "baz", ["parser-punctuation", "}"],
 
62
                        ["punctuation", "\""]
 
63
                ]],
 
64
                ["punctuation", ">"]
 
65
        ]]
 
66
]
 
67
 
 
68
----------------------------------------------------
 
69
 
 
70
Checks for keywords.
 
 
b'\\ No newline at end of file'