diff --git a/src/parser/parser_context.rs b/src/parser/parser_context.rs index 232db31..616b983 100644 --- a/src/parser/parser_context.rs +++ b/src/parser/parser_context.rs @@ -6,6 +6,7 @@ use nom::IResult; use super::list::List; use super::list::Node; use super::Context; +use super::Object; use crate::error::CustomError; use crate::error::MyError; use crate::error::Res; @@ -133,6 +134,13 @@ pub enum ContextElement<'r, 's> { /// Indicates if elements should consume the whitespace after them. ConsumeTrailingWhitespace(bool), + + /// The contents of a radio target. + /// + /// If any are found, this will force a 2nd parse through the + /// org-mode document since text needs to be re-parsed to look for + /// radio links matching the contents of radio targets. + RadioTarget(Vec>>), } pub struct ExitMatcherNode<'r> {