File tree 4 files changed +50
-10
lines changed
4 files changed +50
-10
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const { registerWalker } = require('../walker');
14
14
15
15
const Node = require ( './Node' ) ;
16
16
17
- const unitRegex = / % | c h | c m | e m | e x | i n | m m | p c | p t | p x | r e m | v h | v m a x | v m i n | v w $ / i;
17
+ const unitRegex = / % | c h | c m | e m | e x | i n | m m | p c | p t | p x | q | r e m | v h | v m a x | v m i n | v w $ / i;
18
18
19
19
class Numeric extends Node {
20
20
constructor ( options = { } ) {
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ module.exports = {
22
22
'-2px' ,
23
23
'-16px' ,
24
24
'-16px -1px -1px -16px' ,
25
+ '10q' ,
25
26
'1e10' ,
26
27
'1E10' ,
27
28
'1e-10' ,
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ Generated by [AVA](https://ava.li).
69
69
input: Input {
70
70
css: '-.567800E-0012780em',
71
71
hasBOM: false,
72
- id: '<input css 19 >',
72
+ id: '<input css 20 >',
73
73
},
74
74
start: {
75
75
column: 1,
@@ -375,7 +375,7 @@ Generated by [AVA](https://ava.li).
375
375
input: Input {
376
376
css: '.1E+10',
377
377
hasBOM: false,
378
- id: '<input css 21 >',
378
+ id: '<input css 22 >',
379
379
},
380
380
start: {
381
381
column: 1,
@@ -414,7 +414,7 @@ Generated by [AVA](https://ava.li).
414
414
input: Input {
415
415
css: '.1E-10',
416
416
hasBOM: false,
417
- id: '<input css 20 >',
417
+ id: '<input css 21 >',
418
418
},
419
419
start: {
420
420
column: 1,
@@ -505,6 +505,45 @@ Generated by [AVA](https://ava.li).
505
505
},
506
506
]
507
507
508
+ ## 10q
509
+
510
+ > Snapshot 1
511
+
512
+ '10q'
513
+
514
+ > Snapshot 2
515
+
516
+ '10q'
517
+
518
+ > Snapshot 3
519
+
520
+ [
521
+ Numeric {
522
+ raws: {
523
+ after: '',
524
+ before: '',
525
+ },
526
+ source: {
527
+ end: {
528
+ column: 1,
529
+ line: 1,
530
+ },
531
+ input: Input {
532
+ css: '10q',
533
+ hasBOM: false,
534
+ id: '<input css 13>',
535
+ },
536
+ start: {
537
+ column: 1,
538
+ line: 1,
539
+ },
540
+ },
541
+ type: 'numeric',
542
+ unit: 'q',
543
+ value: '10',
544
+ },
545
+ ]
546
+
508
547
## 1E+10
509
548
510
549
> Snapshot 1
@@ -531,7 +570,7 @@ Generated by [AVA](https://ava.li).
531
570
input: Input {
532
571
css: '1E+10',
533
572
hasBOM: false,
534
- id: '<input css 18 >',
573
+ id: '<input css 19 >',
535
574
},
536
575
start: {
537
576
column: 1,
@@ -570,7 +609,7 @@ Generated by [AVA](https://ava.li).
570
609
input: Input {
571
610
css: '1E-10',
572
611
hasBOM: false,
573
- id: '<input css 16 >',
612
+ id: '<input css 17 >',
574
613
},
575
614
start: {
576
615
column: 1,
@@ -609,7 +648,7 @@ Generated by [AVA](https://ava.li).
609
648
input: Input {
610
649
css: '1E10',
611
650
hasBOM: false,
612
- id: '<input css 14 >',
651
+ id: '<input css 15 >',
613
652
},
614
653
start: {
615
654
column: 1,
@@ -648,7 +687,7 @@ Generated by [AVA](https://ava.li).
648
687
input: Input {
649
688
css: '1e+10',
650
689
hasBOM: false,
651
- id: '<input css 17 >',
690
+ id: '<input css 18 >',
652
691
},
653
692
start: {
654
693
column: 1,
@@ -687,7 +726,7 @@ Generated by [AVA](https://ava.li).
687
726
input: Input {
688
727
css: '1e-10',
689
728
hasBOM: false,
690
- id: '<input css 15 >',
729
+ id: '<input css 16 >',
691
730
},
692
731
start: {
693
732
column: 1,
@@ -726,7 +765,7 @@ Generated by [AVA](https://ava.li).
726
765
input: Input {
727
766
css: '1e10',
728
767
hasBOM: false,
729
- id: '<input css 13 >',
768
+ id: '<input css 14 >',
730
769
},
731
770
start: {
732
771
column: 1,
You can’t perform that action at this time.
0 commit comments