Skip to content

Commit c174609

Browse files
stephencelisactions-user
authored andcommitted
Run swift-format
1 parent aa06f3c commit c174609

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Sources/Parsing/Parsers/Whitespace.swift

+12-12
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@ where
2929
// Unicode chars from `CharacterSet.whitespaces`
3030
// General category Zs + \t
3131
switch bytes.first {
32-
case 0x20, 0x9: // U+0020, \t (U+0009)
32+
case 0x20, 0x9: // U+0020, \t (U+0009)
3333
bytes.removeFirst()
3434
return true
3535

36-
case 194: // U+00A0
36+
case 194: // U+00A0
3737
if bytes.dropFirst().first == 0xA0 {
3838
bytes.removeFirst(2)
3939
return true
4040
}
4141
return false
42-
43-
case 225: // U+1680
42+
43+
case 225: // U+1680
4444
if bytes.dropFirst().first == 154,
4545
bytes.dropFirst(2).first == 128
4646
{
@@ -49,7 +49,7 @@ where
4949
}
5050
return false
5151

52-
case 226: // U+2000 ~ U+200A, U+202F
52+
case 226: // U+2000 ~ U+200A, U+202F
5353
switch bytes.dropFirst().first {
5454
case 128:
5555
if let byte = bytes.dropFirst(2).first,
@@ -60,7 +60,7 @@ where
6060
}
6161
return false
6262

63-
case 129: // U+205F
63+
case 129: // U+205F
6464
if bytes.dropFirst(2).first == 159 {
6565
bytes.removeFirst(3)
6666
return true
@@ -71,7 +71,7 @@ where
7171
return false
7272
}
7373

74-
case 227: // U+3000
74+
case 227: // U+3000
7575
if bytes.dropFirst().starts(with: [128, 128]) {
7676
bytes.removeFirst(3)
7777
return true
@@ -87,18 +87,18 @@ where
8787
func consumeVertical() -> Bool {
8888
// Unicode chars from `CharacterSet.newlines`
8989
switch bytes.first {
90-
case 0xA, 0xB, 0xC, 0xD: // U+000A ~ U+000D
90+
case 0xA, 0xB, 0xC, 0xD: // U+000A ~ U+000D
9191
bytes.removeFirst()
9292
return true
93-
94-
case 194: // U+0085
93+
94+
case 194: // U+0085
9595
if bytes.dropFirst().first == 0x85 {
9696
bytes.removeFirst(2)
9797
return true
9898
}
9999
return false
100-
101-
case 226: // U+2028, U+2029
100+
101+
case 226: // U+2028, U+2029
102102
if bytes.dropFirst().first == 128,
103103
let byte = bytes.dropFirst(2).first,
104104
byte == 168 || byte == 169

0 commit comments

Comments
 (0)