mirror of https://github.com/kdl-org/kdl-rs.git
feat(compliance): update to latest 2.0 spec (#103)
This commit is contained in:
parent
d0366db21f
commit
4734b0601b
|
|
@ -866,7 +866,7 @@ fn badval_ty_char(input: &mut Input<'_>) -> PResult<()> {
|
||||||
|
|
||||||
/// `line-space := newline | ws | single-line-comment`
|
/// `line-space := newline | ws | single-line-comment`
|
||||||
fn line_space(input: &mut Input<'_>) -> PResult<()> {
|
fn line_space(input: &mut Input<'_>) -> PResult<()> {
|
||||||
alt((newline, ws, single_line_comment)).parse_next(input)
|
alt((node_space, newline, single_line_comment)).parse_next(input)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// `node-space := ws* escline ws* | ws+`
|
/// `node-space := ws* escline ws* | ws+`
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
node "12"
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
node
|
||||||
|
node
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
node
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
a
|
||||||
|
b
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
parent {
|
||||||
|
child
|
||||||
|
child
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
(type)node
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
node
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
node "a\\ b\na\\b"
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
node "\"\"\""
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
node " a"
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
node "1\
|
||||||
|
|
||||||
|
|
||||||
|
2"
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
node; \
|
||||||
|
node
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
\
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
\
|
||||||
|
|
||||||
|
node
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
a \
|
||||||
|
|
||||||
|
b
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
parent {
|
||||||
|
child
|
||||||
|
\ // comment
|
||||||
|
child
|
||||||
|
}
|
||||||
|
|
@ -1,2 +1,3 @@
|
||||||
node1
|
node1
|
||||||
|
\
|
||||||
node2
|
node2
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
\
|
||||||
|
(type)node
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
node
|
||||||
|
\
|
||||||
|
/-
|
||||||
|
node
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
node """
|
||||||
|
a\\ b
|
||||||
|
a\\\ b
|
||||||
|
"""
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
node """
|
||||||
|
\"""
|
||||||
|
"""
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
node """
|
||||||
|
a
|
||||||
|
\
|
||||||
|
"""
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
node """
|
||||||
|
a
|
||||||
|
\
|
||||||
|
"""
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
node """
|
||||||
|
\s escaped prefix
|
||||||
|
literal prefix
|
||||||
|
"""
|
||||||
Loading…
Reference in New Issue