Compare pathreg.

This commit is contained in:
Tom Alexander 2023-10-06 17:28:26 -04:00
parent e84135985e
commit 51748afd41
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -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"),