Identify a problem.
This commit is contained in:
@@ -4,8 +4,7 @@ use crate::init_tracing::shutdown_telemetry;
|
||||
use ::organic::parser::document;
|
||||
mod init_tracing;
|
||||
|
||||
// const TEST_DOC: &'static str = include_str!("../toy_language.txt");
|
||||
const TEST_DOC: &'static str = "foo bar baz\n\nlorem ipsum";
|
||||
const TEST_DOC: &'static str = include_str!("../toy_language.txt");
|
||||
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
init_telemetry()?;
|
||||
|
||||
@@ -36,6 +36,7 @@ pub fn element<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s str,
|
||||
alt((non_paragraph_matcher, paragraph_matcher))(input)
|
||||
}
|
||||
|
||||
#[tracing::instrument(ret, level = "debug")]
|
||||
pub fn paragraph_element<'r, 's>(
|
||||
context: Context<'r, 's>,
|
||||
input: &'s str,
|
||||
@@ -53,6 +54,8 @@ pub fn paragraph_element<'r, 's>(
|
||||
|
||||
Ok((remaining, element))
|
||||
}
|
||||
|
||||
#[tracing::instrument(ret, level = "debug")]
|
||||
pub fn non_paragraph_element<'r, 's>(
|
||||
context: Context<'r, 's>,
|
||||
input: &'s str,
|
||||
|
||||
Reference in New Issue
Block a user