@@ -38,59 +38,66 @@ declare enum EnumToken {
3838 WhitespaceTokenType = 36 ,
3939 IncludeMatchTokenType = 37 ,
4040 DashMatchTokenType = 38 ,
41- LtTokenType = 39 ,
42- LteTokenType = 40 ,
43- GtTokenType = 41 ,
44- GteTokenType = 42 ,
45- PseudoClassTokenType = 43 ,
46- PseudoClassFuncTokenType = 44 ,
47- DelimTokenType = 45 ,
48- UrlTokenTokenType = 46 ,
49- EOFTokenType = 47 ,
50- ImportantTokenType = 48 ,
51- ColorTokenType = 49 ,
52- AttrTokenType = 50 ,
53- BadCommentTokenType = 51 ,
54- BadCdoTokenType = 52 ,
55- BadUrlTokenType = 53 ,
56- BadStringTokenType = 54 ,
57- BinaryExpressionTokenType = 55 ,
58- UnaryExpressionTokenType = 56 ,
59- FlexTokenType = 57 ,
60- ListToken = 58 ,
61- Add = 59 ,
62- Mul = 60 ,
63- Div = 61 ,
64- Sub = 62 ,
65- ColumnCombinatorTokenType = 63 ,
66- ContainMatchTokenType = 64 ,
67- StartMatchTokenType = 65 ,
68- EndMatchTokenType = 66 ,
69- MatchExpressionTokenType = 67 ,
70- NameSpaceAttributeTokenType = 68 ,
71- FractionTokenType = 69 ,
72- IdenListTokenType = 70 ,
73- GridTemplateFuncTokenType = 71 ,
74- KeyFrameRuleNodeType = 72 ,
75- ClassSelectorTokenType = 73 ,
76- UniversalSelectorTokenType = 74 ,
77- ChildCombinatorTokenType = 75 ,
78- DescendantCombinatorTokenType = 76 , // whitespace
79- NextSiblingCombinatorTokenType = 77 ,
80- SubsequentSiblingCombinatorTokenType = 78 ,
81- NestingSelectorTokenType = 79 ,
82- InvalidRuleTokenType = 80 ,
83- InvalidClassSelectorTokenType = 81 ,
84- InvalidAttrTokenType = 82 ,
85- InvalidAtRuleTokenType = 83 ,
86- MediaQueryConditionTokenType = 84 ,
41+ EqualMatchTokenType = 39 ,
42+ LtTokenType = 40 ,
43+ LteTokenType = 41 ,
44+ GtTokenType = 42 ,
45+ GteTokenType = 43 ,
46+ PseudoClassTokenType = 44 ,
47+ PseudoClassFuncTokenType = 45 ,
48+ DelimTokenType = 46 ,
49+ UrlTokenTokenType = 47 ,
50+ EOFTokenType = 48 ,
51+ ImportantTokenType = 49 ,
52+ ColorTokenType = 50 ,
53+ AttrTokenType = 51 ,
54+ BadCommentTokenType = 52 ,
55+ BadCdoTokenType = 53 ,
56+ BadUrlTokenType = 54 ,
57+ BadStringTokenType = 55 ,
58+ BinaryExpressionTokenType = 56 ,
59+ UnaryExpressionTokenType = 57 ,
60+ FlexTokenType = 58 ,
61+ ListToken = 59 ,
62+ Add = 60 ,
63+ Mul = 61 ,
64+ Div = 62 ,
65+ Sub = 63 ,
66+ ColumnCombinatorTokenType = 64 ,
67+ ContainMatchTokenType = 65 ,
68+ StartMatchTokenType = 66 ,
69+ EndMatchTokenType = 67 ,
70+ MatchExpressionTokenType = 68 ,
71+ NameSpaceAttributeTokenType = 69 ,
72+ FractionTokenType = 70 ,
73+ IdenListTokenType = 71 ,
74+ GridTemplateFuncTokenType = 72 ,
75+ KeyFrameRuleNodeType = 73 ,
76+ ClassSelectorTokenType = 74 ,
77+ UniversalSelectorTokenType = 75 ,
78+ ChildCombinatorTokenType = 76 , // >
79+ DescendantCombinatorTokenType = 77 , // whitespace
80+ NextSiblingCombinatorTokenType = 78 , // +
81+ SubsequentSiblingCombinatorTokenType = 79 , // ~
82+ NestingSelectorTokenType = 80 , // &
83+ InvalidRuleTokenType = 81 ,
84+ InvalidClassSelectorTokenType = 82 ,
85+ InvalidAttrTokenType = 83 ,
86+ InvalidAtRuleTokenType = 84 ,
87+ MediaQueryConditionTokenType = 85 ,
88+ MediaFeatureTokenType = 86 ,
89+ MediaFeatureOnlyTokenType = 87 ,
90+ MediaFeatureNotTokenType = 88 ,
91+ MediaFeatureAndTokenType = 89 ,
92+ MediaFeatureOrTokenType = 90 ,
93+ PseudoPageTokenType = 91 ,
8794 Time = 25 ,
8895 Iden = 7 ,
89- EOF = 47 ,
96+ EOF = 48 ,
9097 Hash = 28 ,
91- Flex = 57 ,
98+ Flex = 58 ,
9299 Angle = 24 ,
93- Color = 49 ,
100+ Color = 50 ,
94101 Comma = 9 ,
95102 String = 20 ,
96103 Length = 23 ,
@@ -103,9 +110,9 @@ declare enum EnumToken {
103110 Frequency = 26 ,
104111 Resolution = 27 ,
105112 Whitespace = 36 ,
106- IdenList = 70 ,
113+ IdenList = 71 ,
107114 DashedIden = 8 ,
108- GridTemplateFunc = 71 ,
115+ GridTemplateFunc = 72 ,
109116 ImageFunc = 19 ,
110117 CommentNodeType = 0 ,
111118 CDOCOMMNodeType = 1 ,
@@ -126,7 +133,7 @@ declare function walkValues(values: Token[], root?: AstNode | Token | null, filt
126133 event : WalkerValueEvent$1 ;
127134 fn ?: WalkerValueFilter ;
128135 type ?: EnumToken | EnumToken [ ] | ( ( token : Token ) => boolean ) ;
129- } ) : Generator < WalkAttributesResult > ;
136+ } , reverse ?: boolean ) : Generator < WalkAttributesResult > ;
130137
131138declare function expand ( ast : AstNode ) : AstNode ;
132139
@@ -412,6 +419,12 @@ export declare interface DashMatchToken extends BaseToken {
412419 // val: '|=';
413420}
414421
422+ export declare interface EqualMatchToken extends BaseToken {
423+
424+ typ : EnumToken . EqualMatchTokenType ;
425+ // val: '|=';
426+ }
427+
415428export declare interface StartMatchToken extends BaseToken {
416429
417430 typ : EnumToken . StartMatchTokenType ;
@@ -461,6 +474,12 @@ export declare interface PseudoClassToken extends BaseToken {
461474 val : string ;
462475}
463476
477+ export declare interface PseudoPageToken extends BaseToken {
478+
479+ typ : EnumToken . PseudoPageTokenType ;
480+ val : string ;
481+ }
482+
464483export declare interface PseudoClassFunctionToken extends BaseToken {
465484
466485 typ : EnumToken . PseudoClassFuncTokenType ;
@@ -542,11 +561,45 @@ export declare interface ChildCombinatorToken extends BaseToken {
542561 typ : EnumToken . ChildCombinatorTokenType
543562}
544563
564+ export declare interface MediaFeatureToken extends BaseToken {
565+
566+ typ : EnumToken . MediaFeatureTokenType ,
567+ val : string ;
568+ }
569+
570+ export declare interface MediaFeatureOnlyToken extends BaseToken {
571+
572+ typ : EnumToken . MediaFeatureOnlyTokenType ,
573+ val : Token ;
574+ }
575+
576+ export declare interface MediaFeatureNotToken extends BaseToken {
577+
578+ typ : EnumToken . MediaFeatureNotTokenType ,
579+ val : Token ;
580+ }
581+
582+ export declare interface MediaFeatureNotToken extends BaseToken {
583+
584+ typ : EnumToken . MediaFeatureNotTokenType ,
585+ val : Token ;
586+ }
587+
588+ export declare interface MediaFeatureAndToken extends BaseToken {
589+
590+ typ : EnumToken . MediaFeatureAndTokenType ;
591+ }
592+
593+ export declare interface MediaFeatureOrToken extends BaseToken {
594+
595+ typ : EnumToken . MediaFeatureOrTokenType ;
596+ }
597+
545598export declare interface MediaQueryConditionToken extends BaseToken {
546599
547600 typ : EnumToken . MediaQueryConditionTokenType ,
548601 l : Token ,
549- op : EnumToken . GtTokenType | EnumToken . LtTokenType | EnumToken . GteTokenType | EnumToken . LteTokenType ,
602+ op : ColonToken | GreaterThanToken | LessThanToken | GreaterThanOrEqualToken | LessThanOrEqualToken ,
550603 r : Token [ ]
551604}
552605
@@ -610,7 +663,7 @@ export declare interface BinaryExpressionToken extends BaseToken {
610663export declare interface MatchExpressionToken extends BaseToken {
611664
612665 typ : EnumToken . MatchExpressionTokenType
613- op : DelimToken | DashMatchToken | StartMatchToken | ContainMatchToken | EndMatchToken | IncludeMatchToken ;
666+ op : EqualMatchToken | DashMatchToken | StartMatchToken | ContainMatchToken | EndMatchToken | IncludeMatchToken ;
614667 l : Token ;
615668 r : Token ;
616669 attr ?: 'i' | 's' ;
@@ -662,6 +715,11 @@ export declare type Token =
662715 | NestingSelectorToken
663716 |
664717 MediaQueryConditionToken
718+ | MediaFeatureToken
719+ | MediaFeatureNotToken
720+ | MediaFeatureOnlyToken
721+ | MediaFeatureAndToken
722+ | MediaFeatureOrToken
665723 | AstDeclaration
666724 |
667725 NumberToken
@@ -708,13 +766,15 @@ export declare type Token =
708766 | NameSpaceAttributeToken
709767 |
710768 DashMatchToken
769+ | EqualMatchToken
711770 | LessThanToken
712771 | LessThanOrEqualToken
713772 | GreaterThanToken
714773 | GreaterThanOrEqualToken
715774 |
716775 ListToken
717776 | PseudoClassToken
777+ | PseudoPageToken
718778 | PseudoClassFunctionToken
719779 | DelimToken
720780 | BinaryExpressionToken
0 commit comments