Identify a problem.

This commit is contained in:
Tom Alexander
2023-04-22 00:23:16 -04:00
parent fbdf40fed0
commit fef5841713
4 changed files with 12 additions and 4 deletions

View File

@@ -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()?;

View File

@@ -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,