Skip to content

Commit 3e8b2f4

Browse files
committed
feat(compliance): pull in final extra tests and change VT to newline
1 parent b332eed commit 3e8b2f4

7 files changed

+12
-6
lines changed

src/v2_parser.rs

+6-5
Original file line numberDiff line numberDiff line change
@@ -1578,11 +1578,12 @@ fn escline_test() {
15781578
assert_eq!(node.entries().len(), 2);
15791579
}
15801580

1581-
pub(crate) static NEWLINES: [&str; 7] = [
1581+
pub(crate) static NEWLINES: [&str; 8] = [
15821582
"\u{000D}\u{000A}",
15831583
"\u{000D}",
15841584
"\u{000A}",
15851585
"\u{0085}",
1586+
"\u{000B}",
15861587
"\u{000C}",
15871588
"\u{2028}",
15881589
"\u{2029}",
@@ -1609,10 +1610,10 @@ fn ws(input: &mut Input<'_>) -> PResult<()> {
16091610
alt((unicode_space, multi_line_comment)).parse_next(input)
16101611
}
16111612

1612-
static UNICODE_SPACES: [char; 19] = [
1613-
'\u{0009}', '\u{000B}', '\u{0020}', '\u{00A0}', '\u{1680}', '\u{2000}', '\u{2001}', '\u{2002}',
1614-
'\u{2003}', '\u{2004}', '\u{2005}', '\u{2006}', '\u{2007}', '\u{2008}', '\u{2009}', '\u{200A}',
1615-
'\u{202F}', '\u{205F}', '\u{3000}',
1613+
static UNICODE_SPACES: [char; 18] = [
1614+
'\u{0009}', '\u{0020}', '\u{00A0}', '\u{1680}', '\u{2000}', '\u{2001}',
1615+
'\u{2002}', '\u{2003}', '\u{2004}', '\u{2005}', '\u{2006}', '\u{2007}',
1616+
'\u{2008}', '\u{2009}', '\u{200A}', '\u{202F}', '\u{205F}', '\u{3000}',
16161617
];
16171618

16181619
/// `unicode-space := <See Table>`
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node arg
2+
node2 arg2
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nodearg
1+
node argnode2 arg2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node"string"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node foo="value"bar=5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node "string"1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node "string"/-1

0 commit comments

Comments
 (0)