variable_feature.test
1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
$foo
$foo[bar]
$foo_bar[
$.baz[foo]
$.1[bar]
]
$foo.$bar
$foo.[$bar.baz]
$math:PI
($foo)
<div class="$foo">
----------------------------------------------------
[
["variable", ["$foo"]],
["variable", ["$foo"]], ["punctuation", "["], "bar", ["punctuation", "]"],
["variable", ["$foo_bar"]], ["punctuation", "["],
["variable", ["$", ["punctuation", "."], "baz"]],
["punctuation", "["], "foo", ["punctuation", "]"],
["variable", ["$", ["punctuation", "."], "1"]],
["punctuation", "["], "bar", ["punctuation", "]"],
["punctuation", "]"],
["variable", ["$foo", ["punctuation", "."]]], ["variable", ["$bar"]],
["variable", ["$foo", ["punctuation", "."]]], ["punctuation", "["],
["variable", ["$bar", ["punctuation", "."], "baz"]], ["punctuation", "]"],
["variable", ["$math", ["punctuation", ":"], "PI"]],
["expression", [
["punctuation", "("],
["variable", ["$foo"]],
["punctuation", ")"]
]],
["tag", [
["tag", [
["punctuation", "<"],
"div"
]],
["attr-name", ["class"]],
["attr-value", [
["punctuation", "="],
["punctuation", "\""],
["variable", ["$foo"]],
["punctuation", "\""]
]],
["punctuation", ">"]
]]
]
----------------------------------------------------
Checks for variables.