Skip to content

Commit 159be09

Browse files
committed
test(lexer): Ensure frontmatter can contain unicode whitespace
1 parent b2962c3 commit 159be09

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env -S cargo -Zscript
2+
---cargo
3+
# Beware editing: it has numerous whitespace characters which are important.
4+
# It contains one ranges from the 'PATTERN_WHITE_SPACE' property outlined in
5+
# https://unicode.org/Public/UNIDATA/PropList.txt
6+
#
7+
# The characters in the first expression of the assertion can be generated
8+
# from: "4\u{0C}+\n\t\r7\t*\u{20}2\u{85}/\u{200E}3\u{200F}*\u{2028}2\u{2029}"
9+
package.description = """
10+
4 +
11+
12+
7 * 2…/‎3*2
13+
"""
14+
---
15+
16+
//@ check-pass
17+
18+
// Ensure the frontmatter can contain any whitespace
19+
20+
#![feature(frontmatter)]
21+
22+
fn main() {}

0 commit comments

Comments
 (0)