mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
simplify regex expression strings
This commit is contained in:
parent
6ab54c02e2
commit
60afb79cc7
2 changed files with 7 additions and 7 deletions
|
@ -149,10 +149,10 @@ lazy_static! {
|
|||
/// inst # instantiate the given generic instance
|
||||
/// ```
|
||||
static ref RE_TYPE_QUERY: Regex =
|
||||
Regex::new(r#"(?P<where>\^+)(?:\{(?P<directives>.*?)\})?"#).unwrap();
|
||||
Regex::new(r"(?P<where>\^+)(?:\{(?P<directives>.*?)\})?").unwrap();
|
||||
|
||||
static ref RE_DIRECTIVE : Regex =
|
||||
Regex::new(r#"(?:-(?P<sub>\d+))|(?P<inst>inst)"#).unwrap();
|
||||
Regex::new(r"(?:-(?P<sub>\d+))|(?P<inst>inst)").unwrap();
|
||||
}
|
||||
|
||||
/// Markers of nested query lines, that should be skipped.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue