Compare pathreg.
This commit is contained in:
parent
e84135985e
commit
51748afd41
@ -60,6 +60,7 @@ use crate::types::LatexEnvironment;
|
||||
use crate::types::LatexFragment;
|
||||
use crate::types::LineBreak;
|
||||
use crate::types::LineNumber;
|
||||
use crate::types::LinkType;
|
||||
use crate::types::Minute;
|
||||
use crate::types::MinuteInner;
|
||||
use crate::types::Month;
|
||||
@ -2768,13 +2769,22 @@ fn compare_regular_link<'b, 's>(
|
||||
rust,
|
||||
(
|
||||
EmacsField::Required(":type"),
|
||||
compare_identity,
|
||||
compare_noop
|
||||
|r| {
|
||||
match r.link_type {
|
||||
LinkType::File => Some("file"),
|
||||
LinkType::Protocol(protocol) => Some(protocol),
|
||||
LinkType::Id => Some("id"),
|
||||
LinkType::CustomId => Some("custom-id"),
|
||||
LinkType::CodeRef => Some("coderef"),
|
||||
LinkType::Fuzzy => Some("fuzzy"),
|
||||
}
|
||||
},
|
||||
compare_property_quoted_string
|
||||
),
|
||||
(
|
||||
EmacsField::Required(":path"),
|
||||
compare_identity,
|
||||
compare_noop
|
||||
|r| Some(r.path),
|
||||
compare_property_quoted_string
|
||||
),
|
||||
(
|
||||
EmacsField::Required(":format"),
|
||||
@ -2783,8 +2793,8 @@ fn compare_regular_link<'b, 's>(
|
||||
),
|
||||
(
|
||||
EmacsField::Required(":raw-link"),
|
||||
compare_identity,
|
||||
compare_noop
|
||||
|r| Some(r.raw_link),
|
||||
compare_property_quoted_string
|
||||
),
|
||||
(
|
||||
EmacsField::Required(":application"),
|
||||
|
Loading…
Reference in New Issue
Block a user