simplify regex expression strings

This commit is contained in:
Folkert 2023-10-07 15:34:04 +02:00
parent 6ab54c02e2
commit 60afb79cc7
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 7 additions and 7 deletions

View file

@ -39,23 +39,23 @@ lazy_static! {
/// # +set <setting>
static ref RE_SETTING: Regex =
Regex::new(r#"# \+set (?P<setting>.*?)=(?P<value>.*)"#).unwrap();
Regex::new(r"# \+set (?P<setting>.*?)=(?P<value>.*)").unwrap();
/// # +opt can:<opt>
static ref RE_OPT_CAN: Regex =
Regex::new(r#"# \+opt can:(?P<opt>.*)"#).unwrap();
Regex::new(r"# \+opt can:(?P<opt>.*)").unwrap();
/// # +opt infer:<opt>
static ref RE_OPT_INFER: Regex =
Regex::new(r#"# \+opt infer:(?P<opt>.*)"#).unwrap();
Regex::new(r"# \+opt infer:(?P<opt>.*)").unwrap();
/// # +opt mono:<opt>
static ref RE_OPT_MONO: Regex =
Regex::new(r#"# \+opt mono:(?P<opt>.*)"#).unwrap();
Regex::new(r"# \+opt mono:(?P<opt>.*)").unwrap();
/// # +emit:<opt>
static ref RE_EMIT: Regex =
Regex::new(r#"# \+emit:(?P<opt>.*)"#).unwrap();
Regex::new(r"# \+emit:(?P<opt>.*)").unwrap();
/// ## module <name>
static ref RE_MODULE: Regex =