Treat vertical tab and form feed as whitespace in the KSS fuzz check
The lexer skips them, so the formatter may drop them, but the fuzz check counted that as a change beyond whitespace (Kryon CI, seed 1113). The check now uses the lexer's KssIsSpace, and the sheet joins the corpus.
This commit is contained in:
1 parent
0cf25d6c00
commit
ffbf8cffe5
2 files changed
+30
-1
No files matched your search
@@ -0,0 +1,27 @@
|
||||
@pack fuzz;
|
||||
@layer reset, app;
|
||||
@variant roomy "Label" {
|
||||
x: #112233;
|
||||
NavigationBarItem.primary[tone=Accent] {
|
||||
}
|
||||
}
|
||||
Slider[role=Nothing][role=Nothing] {
|
||||
material: 1 2 3;
|
||||
border: text;
|
||||
offset-y: radius;
|
||||
foreground: -3.5;
|
||||
}
|
||||
@import <base>;
|
||||
TreeView {
|
||||
font-size: .;
|
||||
background: accent;
|
||||
focus: #abc;
|
||||
transition: 99999999999999999999;
|
||||
}
|
||||
Toggle[tone=Accent] {
|
||||
background-end: #11223344;
|
||||
font-size: 0.000001;
|
||||
foreground: transparent;
|
||||
}
|
||||
Text[emphasis=Outline] {
|
||||
}
|
||||
+3
-1
@@ -1056,8 +1056,10 @@ WriteOutcome :: (outcome: Outcome) {
|
||||
WriteText(2, " foreign blocks\n")
|
||||
}
|
||||
|
||||
// Whitespace as the lexer skips it, including vertical tab and form feed,
|
||||
// so the formatter may drop exactly these bytes.
|
||||
IsSpace :: (byte: u8) -> bool {
|
||||
return byte == 32 || byte == 9 || byte == 10 || byte == 13
|
||||
return KssIsSpace(byte)
|
||||
}
|
||||
|
||||
// True when a and b hold the same bytes apart from whitespace.
|
||||
|
||||
Reference in new issue
Block a user