File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ use std::mem::MaybeUninit;
19
19
/// # fn dummy(function_name: &String) { let _ =
20
20
/// match_ignore_ascii_case! { &function_name,
21
21
/// "rgb" => parse_rgb(..),
22
+ /// # #[cfg(not(something))]
22
23
/// "rgba" => parse_rgba(..),
23
24
/// "hsl" => parse_hsl(..),
24
25
/// "hsla" => parse_hsla(..),
@@ -35,6 +36,7 @@ use std::mem::MaybeUninit;
35
36
macro_rules! match_ignore_ascii_case {
36
37
( $input: expr,
37
38
$(
39
+ $( #[ $meta: meta] ) *
38
40
$( $pattern: pat ) |+ $( if $guard: expr ) ? => $then: expr
39
41
) ,+
40
42
$( , ) ?
@@ -55,6 +57,7 @@ macro_rules! match_ignore_ascii_case {
55
57
// since we’ve verified that none of them include ASCII upper case letters.
56
58
match lowercase. unwrap_or( "A" ) {
57
59
$(
60
+ $( #[ $meta] ) *
58
61
$( $pattern ) |+ $( if $guard ) ? => $then,
59
62
) +
60
63
}
You can’t perform that action at this time.
0 commit comments