This commit is contained in:
Tom Alexander 2023-10-05 02:26:11 -04:00
parent ef8a6884fe
commit e21701b97c
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 3 additions and 13 deletions

View File

@ -128,19 +128,6 @@ fn _element<'b, 'g, 'r, 's>(
}
}
// if maybe_element.is_none() {
// #[cfg(feature = "tracing")]
// let span = span!(tracing::Level::DEBUG, "Regular keyword.");
// #[cfg(feature = "tracing")]
// let _enter = span.enter();
// let (remain, kw) = opt(map(keyword_matcher, Element::Keyword))(remaining)?;
// if kw.is_some() {
// maybe_element = kw;
// remaining = remain;
// }
// }
if maybe_element.is_none() {
#[cfg(feature = "tracing")]
let span = span!(

View File

@ -269,6 +269,9 @@ impl<'s> Comment<'s> {
}
impl<'s> ExportBlock<'s> {
/// Gets the export type capitalized.
///
/// Upstream Emacs Org-mode capitalizes the export type.
pub fn get_export_type(&self) -> Option<String> {
self.export_type.map(|s| s.to_uppercase())
}