mirror of https://github.com/kdl-org/kdl-rs.git
feat(compliance): pull in final extra tests and change VT to newline
This commit is contained in:
parent
b332eed4a0
commit
3e8b2f443a
|
|
@ -1578,11 +1578,12 @@ fn escline_test() {
|
|||
assert_eq!(node.entries().len(), 2);
|
||||
}
|
||||
|
||||
pub(crate) static NEWLINES: [&str; 7] = [
|
||||
pub(crate) static NEWLINES: [&str; 8] = [
|
||||
"\u{000D}\u{000A}",
|
||||
"\u{000D}",
|
||||
"\u{000A}",
|
||||
"\u{0085}",
|
||||
"\u{000B}",
|
||||
"\u{000C}",
|
||||
"\u{2028}",
|
||||
"\u{2029}",
|
||||
|
|
@ -1609,10 +1610,10 @@ fn ws(input: &mut Input<'_>) -> PResult<()> {
|
|||
alt((unicode_space, multi_line_comment)).parse_next(input)
|
||||
}
|
||||
|
||||
static UNICODE_SPACES: [char; 19] = [
|
||||
'\u{0009}', '\u{000B}', '\u{0020}', '\u{00A0}', '\u{1680}', '\u{2000}', '\u{2001}', '\u{2002}',
|
||||
'\u{2003}', '\u{2004}', '\u{2005}', '\u{2006}', '\u{2007}', '\u{2008}', '\u{2009}', '\u{200A}',
|
||||
'\u{202F}', '\u{205F}', '\u{3000}',
|
||||
static UNICODE_SPACES: [char; 18] = [
|
||||
'\u{0009}', '\u{0020}', '\u{00A0}', '\u{1680}', '\u{2000}', '\u{2001}',
|
||||
'\u{2002}', '\u{2003}', '\u{2004}', '\u{2005}', '\u{2006}', '\u{2007}',
|
||||
'\u{2008}', '\u{2009}', '\u{200A}', '\u{202F}', '\u{205F}', '\u{3000}',
|
||||
];
|
||||
|
||||
/// `unicode-space := <See Table>`
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
node arg
|
||||
node2 arg2
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
nodearg
|
||||
node argnode2 arg2
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
node"string"
|
||||
|
|
@ -0,0 +1 @@
|
|||
node foo="value"bar=5
|
||||
|
|
@ -0,0 +1 @@
|
|||
node "string"1
|
||||
|
|
@ -0,0 +1 @@
|
|||
node "string"/-1
|
||||
Loading…
Reference in New Issue