feat(compliance): pull in final extra tests and change VT to newline

This commit is contained in:
Kat Marchán 2024-12-21 17:42:13 -08:00
parent b332eed4a0
commit 3e8b2f443a
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
7 changed files with 12 additions and 6 deletions

View File

@ -1578,11 +1578,12 @@ fn escline_test() {
assert_eq!(node.entries().len(), 2); 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{000D}", "\u{000D}",
"\u{000A}", "\u{000A}",
"\u{0085}", "\u{0085}",
"\u{000B}",
"\u{000C}", "\u{000C}",
"\u{2028}", "\u{2028}",
"\u{2029}", "\u{2029}",
@ -1609,10 +1610,10 @@ fn ws(input: &mut Input<'_>) -> PResult<()> {
alt((unicode_space, multi_line_comment)).parse_next(input) alt((unicode_space, multi_line_comment)).parse_next(input)
} }
static UNICODE_SPACES: [char; 19] = [ static UNICODE_SPACES: [char; 18] = [
'\u{0009}', '\u{000B}', '\u{0020}', '\u{00A0}', '\u{1680}', '\u{2000}', '\u{2001}', '\u{2002}', '\u{0009}', '\u{0020}', '\u{00A0}', '\u{1680}', '\u{2000}', '\u{2001}',
'\u{2003}', '\u{2004}', '\u{2005}', '\u{2006}', '\u{2007}', '\u{2008}', '\u{2009}', '\u{200A}', '\u{2002}', '\u{2003}', '\u{2004}', '\u{2005}', '\u{2006}', '\u{2007}',
'\u{202F}', '\u{205F}', '\u{3000}', '\u{2008}', '\u{2009}', '\u{200A}', '\u{202F}', '\u{205F}', '\u{3000}',
]; ];
/// `unicode-space := <See Table>` /// `unicode-space := <See Table>`

View File

@ -1 +1,2 @@
node arg node arg
node2 arg2

View File

@ -1 +1 @@
node arg node arg node2 arg2

View File

@ -0,0 +1 @@
node"string"

View File

@ -0,0 +1 @@
node foo="value"bar=5

View File

@ -0,0 +1 @@
node "string"1

View File

@ -0,0 +1 @@
node "string"/-1