diff --git a/src/parser/element_parser.rs b/src/parser/element_parser.rs index 238dade..81dc435 100644 --- a/src/parser/element_parser.rs +++ b/src/parser/element_parser.rs @@ -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!( diff --git a/src/types/lesser_element.rs b/src/types/lesser_element.rs index 4b41a56..3a78c9d 100644 --- a/src/types/lesser_element.rs +++ b/src/types/lesser_element.rs @@ -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 { self.export_type.map(|s| s.to_uppercase()) }