mirror of https://github.com/kdl-org/kdl-rs.git
fmt
This commit is contained in:
parent
5809d21898
commit
758a0bc46e
|
|
@ -73,7 +73,11 @@ pub(crate) fn node(input: &str) -> IResult<&str, Option<KdlNode>, KdlParseError<
|
|||
let (input, comment) = opt(terminated(tag("/-"), many0(whitespace)))(input)?;
|
||||
let (input, tag) = identifier(input)?;
|
||||
let (input, args) = many0(preceded(node_space, node_prop_or_arg))(input)?;
|
||||
let (input, children) = opt(delimited(many0(node_space), node_children, many0(whitespace)))(input)?;
|
||||
let (input, children) = opt(delimited(
|
||||
many0(node_space),
|
||||
node_children,
|
||||
many0(whitespace),
|
||||
))(input)?;
|
||||
let (input, _) = node_terminator(input)?;
|
||||
if comment.is_some() {
|
||||
Ok((input, None))
|
||||
|
|
|
|||
Loading…
Reference in New Issue