From b5f8561b795f003ce89e4049b8eaf5cb78fc827b Mon Sep 17 00:00:00 2001 From: Lily Ballard Date: Mon, 14 Dec 2020 17:40:11 -0800 Subject: [PATCH] Replace ```ignore with ```text (#21) Using the `ignore` marker makes `cargo test` think this is rust code that should be ignored, which means it prints an "ignored" line in the test output. It also makes `cargo doc --document-private-items` attempt to colorize it as rust code. Marking this as `text` instead fixes both issues. --- src/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser.rs b/src/parser.rs index 9a2d4fb..289611f 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -166,7 +166,7 @@ fn number(input: &str) -> IResult<&str, KdlNodeValue, KdlParseError<&str>> { ))(input) } -/// ```ignore +/// ```text /// decimal := integer ('.' [0-9]+)? exponent? /// exponent := ('e' | 'E') integer /// integer := sign? [1-9] [0-9_]* @@ -188,7 +188,7 @@ fn float(input: &str) -> IResult<&str, f64, KdlParseError<&str>> { )(input) } -/// ```ignore +/// ```text /// decimal := integer ('.' [0-9]+)? exponent? /// exponent := ('e' | 'E') integer /// integer := sign? [1-9] [0-9_]*