|
|
@ -69,7 +69,7 @@ lazy_static! {
|
|
|
|
.unwrap();
|
|
|
|
.unwrap();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(PartialEq, Debug, Clone)]
|
|
|
|
#[derive(PartialEq, Debug)]
|
|
|
|
pub(crate) struct Link<'a> {
|
|
|
|
pub(crate) struct Link<'a> {
|
|
|
|
pub(crate) start_index: usize,
|
|
|
|
pub(crate) start_index: usize,
|
|
|
|
pub(crate) end_index: usize,
|
|
|
|
pub(crate) end_index: usize,
|
|
|
@ -167,7 +167,7 @@ impl<'a> Link<'a> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(PartialEq, Debug, Clone)]
|
|
|
|
#[derive(PartialEq, Debug)]
|
|
|
|
pub(crate) enum LinkType {
|
|
|
|
pub(crate) enum LinkType {
|
|
|
|
Escaped,
|
|
|
|
Escaped,
|
|
|
|
Template(PathBuf),
|
|
|
|
Template(PathBuf),
|
|
|
@ -207,7 +207,7 @@ pub(crate) fn extract_template_links(contents: &str) -> LinkIter<'_> {
|
|
|
|
LinkIter(TEMPLATE.captures_iter(contents))
|
|
|
|
LinkIter(TEMPLATE.captures_iter(contents))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(PartialEq, Debug, Clone)]
|
|
|
|
#[derive(PartialEq, Debug)]
|
|
|
|
struct Args<'a> {
|
|
|
|
struct Args<'a> {
|
|
|
|
start_index: usize,
|
|
|
|
start_index: usize,
|
|
|
|
end_index: usize,
|
|
|
|
end_index: usize,
|
|
|
@ -270,7 +270,7 @@ impl<'a> Args<'a> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(PartialEq, Debug, Clone)]
|
|
|
|
#[derive(PartialEq, Debug)]
|
|
|
|
enum ArgsType<'a> {
|
|
|
|
enum ArgsType<'a> {
|
|
|
|
Escaped,
|
|
|
|
Escaped,
|
|
|
|
Plain(&'a str),
|
|
|
|
Plain(&'a str),
|
|
|
|