chore: cargo fmt
parent
0d11b0e832
commit
418558c05d
|
|
@ -6,10 +6,7 @@ lazy_static! {
|
||||||
static ref DEFAULT: Regex = Regex::new(r"(?m)^\n\n").unwrap();
|
static ref DEFAULT: Regex = Regex::new(r"(?m)^\n\n").unwrap();
|
||||||
static ref LANGUAGES: HashMap<&'static str, Regex> = {
|
static ref LANGUAGES: HashMap<&'static str, Regex> = {
|
||||||
let mut map = HashMap::new();
|
let mut map = HashMap::new();
|
||||||
map.insert(
|
map.insert("unknown", Regex::new(r"(?m)^(\n\n)").unwrap());
|
||||||
"unknown",
|
|
||||||
Regex::new(r"(?m)^(\n\n)").unwrap(),
|
|
||||||
);
|
|
||||||
map.insert(
|
map.insert(
|
||||||
"python",
|
"python",
|
||||||
Regex::new(r"(?m)^(\n\n|def|#|from|class)").unwrap(),
|
Regex::new(r"(?m)^(\n\n|def|#|from|class)").unwrap(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue