Actually absolute paths are files too.
This commit is contained in:
parent
65e142a215
commit
56348a6d54
@ -1,5 +1,4 @@
|
|||||||
[[elisp.org]]
|
[[elisp.org]]
|
||||||
[[/elisp.org]]
|
|
||||||
|
|
||||||
[[eli
|
[[eli
|
||||||
sp.org]]
|
sp.org]]
|
||||||
|
@ -239,7 +239,7 @@ fn apply_link_templates<'b, 'g, 'r, 's>(
|
|||||||
|
|
||||||
fn file_path_reg<'s>(input: OrgSource<'s>) -> Res<OrgSource<'s>, PathReg<'s>> {
|
fn file_path_reg<'s>(input: OrgSource<'s>) -> Res<OrgSource<'s>, PathReg<'s>> {
|
||||||
let (remaining, (raw_link, (_, path, search_option))) = consumed(tuple((
|
let (remaining, (raw_link, (_, path, search_option))) = consumed(tuple((
|
||||||
alt((tag("file:"), peek(tag(".")))),
|
alt((tag("file:"), peek(tag(".")), peek(tag("/")))),
|
||||||
recognize(many_till(anychar, alt((peek(tag("::")), eof)))),
|
recognize(many_till(anychar, alt((peek(tag("::")), eof)))),
|
||||||
opt(map(tuple((tag("::"), rest)), |(_, search_option)| {
|
opt(map(tuple((tag("::"), rest)), |(_, search_option)| {
|
||||||
search_option
|
search_option
|
||||||
|
Loading…
Reference in New Issue
Block a user