Skip to content

Commit 9304aa1

Browse files
committed
test(lexer): Ensure tabs are accepted for horizontal whitespace
1 parent 159be09 commit 9304aa1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tests/ui/frontmatter/frontmatter-whitespace-3.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

3-
---cargo
4-
---
3+
---cargo
4+
---
55

66
// please note the whitespace characters after the first four lines.
77
// This ensures that we accept whitespaces before the frontmatter, after
@@ -10,6 +10,7 @@
1010
//@ check-pass
1111
// ignore-tidy-end-whitespace
1212
// ignore-tidy-leading-newlines
13+
// ignore-tidy-tab
1314

1415
#![feature(frontmatter)]
1516

tests/ui/frontmatter/frontmatter-whitespace-4.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
--- cargo
1+
--- cargo
22
---
33

44
//@ check-pass
5+
// ignore-tidy-tab
56
// A frontmatter infostring can have leading whitespace.
67

78
#![feature(frontmatter)]

0 commit comments

Comments
 (0)