22 * License, v. 2.0. If a copy of the MPL was not distributed with this
33 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44
5- // http ://dev.w3 .org/csswg/css3 -syntax/#tokenization
5+ // https ://drafts.csswg .org/css -syntax/#tokenization
66
77use std:: ops:: Range ;
88use std:: cell:: Cell ;
@@ -22,55 +22,55 @@ use self::Token::*;
2222#[ derive( PartialEq , Debug , Clone ) ]
2323pub enum Token < ' a > {
2424
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)
2626 Ident ( Cow < ' a , str > ) ,
2727
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)
2929 ///
3030 /// The value does not include the `@` marker.
3131 AtKeyword ( Cow < ' a , str > ) ,
3232
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"
3434 ///
3535 /// The value does not include the `#` marker.
3636 Hash ( Cow < ' a , str > ) ,
3737
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"
3939 ///
4040 /// The value does not include the `#` marker.
4141 IDHash ( Cow < ' a , str > ) , // Hash that is a valid ID selector.
4242
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)
4444 ///
4545 /// The value does not include the quotes.
4646 QuotedString ( Cow < ' a , str > ) ,
4747
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
4949 ///
5050 /// The value does not include the `url(` `)` markers or the quotes.
5151 Url ( Cow < ' a , str > ) ,
5252
5353 /// A `<delim-token>`
5454 Delim ( char ) ,
5555
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)
5757 Number ( NumericValue ) ,
5858
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)
6060 Percentage ( PercentageValue ) ,
6161
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)
6363 Dimension ( NumericValue , Cow < ' a , str > ) ,
6464
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)
6666 ///
6767 /// Components are the start and end code points, respectively.
6868 ///
6969 /// The tokenizer only reads up to 6 hex digit (up to 0xFF_FFFF),
7070 /// but does not check that code points are within the range of Unicode (up to U+10_FFFF).
7171 UnicodeRange ( u32 , u32 ) ,
7272
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)
7474 WhiteSpace ( & ' a str ) ,
7575
7676 /// A comment.
@@ -90,31 +90,31 @@ pub enum Token<'a> {
9090 /// A `,` `<comma-token>`
9191 Comma , // ,
9292
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)
9494 IncludeMatch ,
9595
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)
9797 DashMatch ,
9898
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)
100100 PrefixMatch ,
101101
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)
103103 SuffixMatch ,
104104
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)
106106 SubstringMatch ,
107107
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)
109109 Column ,
110110
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)
112112 CDO ,
113113
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)
115115 CDC ,
116116
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)
118118 ///
119119 /// The value (name) does not include the `(` marker.
120120 Function ( Cow < ' a , str > ) ,
0 commit comments