mirror of https://github.com/kdl-org/kdl.git
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.
This commit is contained in:
parent
775aa0fed0
commit
b5f8561b79
|
|
@ -166,7 +166,7 @@ fn number(input: &str) -> IResult<&str, KdlNodeValue, KdlParseError<&str>> {
|
||||||
))(input)
|
))(input)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// ```ignore
|
/// ```text
|
||||||
/// decimal := integer ('.' [0-9]+)? exponent?
|
/// decimal := integer ('.' [0-9]+)? exponent?
|
||||||
/// exponent := ('e' | 'E') integer
|
/// exponent := ('e' | 'E') integer
|
||||||
/// integer := sign? [1-9] [0-9_]*
|
/// integer := sign? [1-9] [0-9_]*
|
||||||
|
|
@ -188,7 +188,7 @@ fn float(input: &str) -> IResult<&str, f64, KdlParseError<&str>> {
|
||||||
)(input)
|
)(input)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// ```ignore
|
/// ```text
|
||||||
/// decimal := integer ('.' [0-9]+)? exponent?
|
/// decimal := integer ('.' [0-9]+)? exponent?
|
||||||
/// exponent := ('e' | 'E') integer
|
/// exponent := ('e' | 'E') integer
|
||||||
/// integer := sign? [1-9] [0-9_]*
|
/// integer := sign? [1-9] [0-9_]*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue