File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,17 @@ use std::fs;
8
8
use std:: io:: prelude:: * ;
9
9
10
10
lazy_static ! {
11
- static ref DEC_CLIPPY_LINT_RE : Regex = Regex :: new( r#"declare_clippy_lint!\s*[\{(]\s*pub\s+(?P<name>[A-Z_][A-Z_0-9]*)\s*,\s*(?P<cat>[a-z_]+)\s*,\s*"(?P<desc>(?:[^"\\]+|\\(?s).(?-s))*)"\s*[})]"# ) . unwrap( ) ;
12
- static ref DEC_DEPRECATED_LINT_RE : Regex = Regex :: new( r#"declare_deprecated_lint!\s*[{(]\s*pub\s+(?P<name>[A-Z_][A-Z_0-9]*)\s*,\s*"(?P<desc>(?:[^"\\]+|\\(?s).(?-s))*)"\s*[})]"# ) . unwrap( ) ;
11
+ static ref DEC_CLIPPY_LINT_RE : Regex = Regex :: new( r#"(?x)
12
+ declare_clippy_lint!\s*[\{(]\s*
13
+ pub\s+(?P<name>[A-Z_][A-Z_0-9]*)\s*,\s*
14
+ (?P<cat>[a-z_]+)\s*,\s*
15
+ "(?P<desc>(?:[^"\\]+|\\(?s).(?-s))*)"\s*[})]
16
+ "# ) . unwrap( ) ;
17
+ static ref DEC_DEPRECATED_LINT_RE : Regex = Regex :: new( r#"(?x)
18
+ declare_deprecated_lint!\s*[{(]\s*
19
+ pub\s+(?P<name>[A-Z_][A-Z_0-9]*)\s*,\s*
20
+ "(?P<desc>(?:[^"\\]+|\\(?s).(?-s))*)"\s*[})]
21
+ "# ) . unwrap( ) ;
13
22
static ref NL_ESCAPE_RE : Regex = Regex :: new( r#"\\\n\s*"# ) . unwrap( ) ;
14
23
pub static ref DOCS_LINK : String = "https://rust-lang-nursery.github.io/rust-clippy/master/index.html" . to_string( ) ;
15
24
}
You can’t perform that action at this time.
0 commit comments