Blame view

bower_components/prism/tests/languages/stylus/number_feature.test 610 Bytes
eb240478   Luigi Serra   public room cards...
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
  z-index 42

  foo = 3.14159

  width: 23%

  bar = 1.5%

  

  ----------------------------------------------------

  

  [

  	["property-declaration", [

  		["property", ["z-index"]],

  		["number", "42"]

  	]],

  	["variable-declaration", [

  		["variable", "foo"],

  		["operator", "="],

  		["number", "3.14159"]

  	]],

  	["property-declaration", [

  		["property", ["width"]],

  		["punctuation", ":"],

  		["number", "23%"]

  	]],

  	["variable-declaration", [

  		["variable", "bar"],

  		["operator", "="],

  		["number", "1.5%"]

  	]]

  ]

  

  ----------------------------------------------------

  

  Checks for numbers and percentages.