Defining the RadioTarget context element.
This commit is contained in:
parent
22bb42882b
commit
3fc3ba58aa
@ -6,6 +6,7 @@ use nom::IResult;
|
|||||||
use super::list::List;
|
use super::list::List;
|
||||||
use super::list::Node;
|
use super::list::Node;
|
||||||
use super::Context;
|
use super::Context;
|
||||||
|
use super::Object;
|
||||||
use crate::error::CustomError;
|
use crate::error::CustomError;
|
||||||
use crate::error::MyError;
|
use crate::error::MyError;
|
||||||
use crate::error::Res;
|
use crate::error::Res;
|
||||||
@ -133,6 +134,13 @@ pub enum ContextElement<'r, 's> {
|
|||||||
|
|
||||||
/// Indicates if elements should consume the whitespace after them.
|
/// Indicates if elements should consume the whitespace after them.
|
||||||
ConsumeTrailingWhitespace(bool),
|
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> {
|
pub struct ExitMatcherNode<'r> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user