Defining the RadioTarget context element.

This commit is contained in:
Tom Alexander 2023-04-24 20:41:40 -04:00
parent 22bb42882b
commit 3fc3ba58aa
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -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<Vec<Object<'s>>>),
}
pub struct ExitMatcherNode<'r> {