2
2
* License, v. 2.0. If a copy of the MPL was not distributed with this
3
3
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
4
5
- // http ://dev.w3 .org/csswg/css3 -syntax/#tokenization
5
+ // https ://drafts.csswg .org/css -syntax/#tokenization
6
6
7
7
use std:: ops:: Range ;
8
8
use std:: cell:: Cell ;
@@ -22,55 +22,55 @@ use self::Token::*;
22
22
#[ derive( PartialEq , Debug , Clone ) ]
23
23
pub enum Token < ' a > {
24
24
25
- /// A [`<ident-token>`](http ://dev.w3 .org/csswg /css-syntax/#ident-token-diagram)
25
+ /// A [`<ident-token>`](https ://drafts.csswg .org/css-syntax/#ident-token-diagram)
26
26
Ident ( Cow < ' a , str > ) ,
27
27
28
- /// A [`<at-keyword-token>`](http ://dev.w3 .org/csswg /css-syntax/#at-keyword-token-diagram)
28
+ /// A [`<at-keyword-token>`](https ://drafts.csswg .org/css-syntax/#at-keyword-token-diagram)
29
29
///
30
30
/// The value does not include the `@` marker.
31
31
AtKeyword ( Cow < ' a , str > ) ,
32
32
33
- /// A [`<hash-token>`](http ://dev.w3 .org/csswg /css-syntax/#hash-token-diagram) with the type flag set to "unrestricted"
33
+ /// A [`<hash-token>`](https ://drafts.csswg .org/css-syntax/#hash-token-diagram) with the type flag set to "unrestricted"
34
34
///
35
35
/// The value does not include the `#` marker.
36
36
Hash ( Cow < ' a , str > ) ,
37
37
38
- /// A [`<hash-token>`](http ://dev.w3 .org/csswg /css-syntax/#hash-token-diagram) with the type flag set to "id"
38
+ /// A [`<hash-token>`](https ://drafts.csswg .org/css-syntax/#hash-token-diagram) with the type flag set to "id"
39
39
///
40
40
/// The value does not include the `#` marker.
41
41
IDHash ( Cow < ' a , str > ) , // Hash that is a valid ID selector.
42
42
43
- /// A [`<string-token>`](http ://dev.w3 .org/csswg /css-syntax/#string-token-diagram)
43
+ /// A [`<string-token>`](https ://drafts.csswg .org/css-syntax/#string-token-diagram)
44
44
///
45
45
/// The value does not include the quotes.
46
46
QuotedString ( Cow < ' a , str > ) ,
47
47
48
- /// A [`<url-token>`](http ://dev.w3 .org/csswg /css-syntax/#url-token-diagram) or `url( <string-token> )` function
48
+ /// A [`<url-token>`](https ://drafts.csswg .org/css-syntax/#url-token-diagram) or `url( <string-token> )` function
49
49
///
50
50
/// The value does not include the `url(` `)` markers or the quotes.
51
51
Url ( Cow < ' a , str > ) ,
52
52
53
53
/// A `<delim-token>`
54
54
Delim ( char ) ,
55
55
56
- /// A [`<number-token>`](http ://dev.w3 .org/csswg /css-syntax/#number-token-diagram)
56
+ /// A [`<number-token>`](https ://drafts.csswg .org/css-syntax/#number-token-diagram)
57
57
Number ( NumericValue ) ,
58
58
59
- /// A [`<percentage-token>`](http ://dev.w3 .org/csswg /css-syntax/#percentage-token-diagram)
59
+ /// A [`<percentage-token>`](https ://drafts.csswg .org/css-syntax/#percentage-token-diagram)
60
60
Percentage ( PercentageValue ) ,
61
61
62
- /// A [`<dimension-token>`](http ://dev.w3 .org/csswg /css-syntax/#dimension-token-diagram)
62
+ /// A [`<dimension-token>`](https ://drafts.csswg .org/css-syntax/#dimension-token-diagram)
63
63
Dimension ( NumericValue , Cow < ' a , str > ) ,
64
64
65
- /// A [`<unicode-range-token>`](http ://dev.w3 .org/csswg /css-syntax/#unicode-range-token-diagram)
65
+ /// A [`<unicode-range-token>`](https ://drafts.csswg .org/css-syntax/#unicode-range-token-diagram)
66
66
///
67
67
/// Components are the start and end code points, respectively.
68
68
///
69
69
/// The tokenizer only reads up to 6 hex digit (up to 0xFF_FFFF),
70
70
/// but does not check that code points are within the range of Unicode (up to U+10_FFFF).
71
71
UnicodeRange ( u32 , u32 ) ,
72
72
73
- /// A [`<whitespace-token>`](http ://dev.w3 .org/csswg /css-syntax/#whitespace-token-diagram)
73
+ /// A [`<whitespace-token>`](https ://drafts.csswg .org/css-syntax/#whitespace-token-diagram)
74
74
WhiteSpace ( & ' a str ) ,
75
75
76
76
/// A comment.
@@ -90,31 +90,31 @@ pub enum Token<'a> {
90
90
/// A `,` `<comma-token>`
91
91
Comma , // ,
92
92
93
- /// A `~=` [`<include-match-token>`](http ://dev.w3 .org/csswg /css-syntax/#include-match-token-diagram)
93
+ /// A `~=` [`<include-match-token>`](https ://drafts.csswg .org/css-syntax/#include-match-token-diagram)
94
94
IncludeMatch ,
95
95
96
- /// A `|=` [`<dash-match-token>`](http ://dev.w3 .org/csswg /css-syntax/#dash-match-token-diagram)
96
+ /// A `|=` [`<dash-match-token>`](https ://drafts.csswg .org/css-syntax/#dash-match-token-diagram)
97
97
DashMatch ,
98
98
99
- /// A `^=` [`<prefix-match-token>`](http ://dev.w3 .org/csswg /css-syntax/#prefix-match-token-diagram)
99
+ /// A `^=` [`<prefix-match-token>`](https ://drafts.csswg .org/css-syntax/#prefix-match-token-diagram)
100
100
PrefixMatch ,
101
101
102
- /// A `$=` [`<suffix-match-token>`](http ://dev.w3 .org/csswg /css-syntax/#suffix-match-token-diagram)
102
+ /// A `$=` [`<suffix-match-token>`](https ://drafts.csswg .org/css-syntax/#suffix-match-token-diagram)
103
103
SuffixMatch ,
104
104
105
- /// A `*=` [`<substring-match-token>`](http ://dev.w3 .org/csswg /css-syntax/#substring-match-token-diagram)
105
+ /// A `*=` [`<substring-match-token>`](https ://drafts.csswg .org/css-syntax/#substring-match-token-diagram)
106
106
SubstringMatch ,
107
107
108
- /// A `||` [`<column-token>`](http ://dev.w3 .org/csswg /css-syntax/#column-token-diagram)
108
+ /// A `||` [`<column-token>`](https ://drafts.csswg .org/css-syntax/#column-token-diagram)
109
109
Column ,
110
110
111
- /// A `<!--` [`<CDO-token>`](http ://dev.w3 .org/csswg /css-syntax/#CDO-token-diagram)
111
+ /// A `<!--` [`<CDO-token>`](https ://drafts.csswg .org/css-syntax/#CDO-token-diagram)
112
112
CDO ,
113
113
114
- /// A `-->` [`<CDC-token>`](http ://dev.w3 .org/csswg /css-syntax/#CDC-token-diagram)
114
+ /// A `-->` [`<CDC-token>`](https ://drafts.csswg .org/css-syntax/#CDC-token-diagram)
115
115
CDC ,
116
116
117
- /// A [`<function-token>`](http ://dev.w3 .org/csswg /css-syntax/#function-token-diagram)
117
+ /// A [`<function-token>`](https ://drafts.csswg .org/css-syntax/#function-token-diagram)
118
118
///
119
119
/// The value (name) does not include the `(` marker.
120
120
Function ( Cow < ' a , str > ) ,
0 commit comments