Debian Codegraph @

tests/languages/stylus/number_feature.test

raw
1 z-index 42
2 foo = 3.14159
3 width: 23%
4 bar = 1.5%
5
6 ----------------------------------------------------
7
8 [
9 ["property-declaration", [
10 ["property", ["z-index"]],
11 ["number", "42"]
12 ]],
13 ["variable-declaration", [
14 ["variable", "foo"],
15 ["operator", "="],
16 ["number", "3.14159"]
17 ]],
18 ["property-declaration", [
19 ["property", ["width"]],
20 ["punctuation", ":"],
21 ["number", "23"],
22 ["unit", "%"]
23 ]],
24 ["variable-declaration", [
25 ["variable", "bar"],
26 ["operator", "="],
27 ["number", "1.5"],
28 ["unit", "%"]
29 ]]
30 ]
31
32 ----------------------------------------------------
33
34 Checks for numbers and percentages.