Skip to content

Commit b2962c3

Browse files
committed
test(lexer): Ensure frontmatter w/ crlf works
1 parent 75ee9ff commit b2962c3

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

tests/ui/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ json-bom-plus-crlf.rs -text
33
json-bom-plus-crlf-multifile.rs -text
44
json-bom-plus-crlf-multifile-aux.rs -text
55
trailing-carriage-return-in-string.rs -text
6+
frontmatter-crlf.rs -text
67
*.bin -text
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env -S cargo -Zscript
2+
---
3+
[dependencies]
4+
clap = "4"
5+
---
6+
7+
//@ check-pass
8+
// ignore-tidy-cr
9+
10+
// crlf line endings should be accepted
11+
12+
#![feature(frontmatter)]
13+
14+
fn main() {}

0 commit comments

Comments
 (0)