feat: add swift indents (#4756)

This commit is contained in:
Pham Huy Hoang 2023-05-08 14:53:31 +09:00 committed by GitHub
parent b231afbad1
commit 864b4171de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 210 additions and 0 deletions

View file

@ -0,0 +1,34 @@
func Test() {
if true {
return
} else if true {
return
}
switch x {
case "1":
print("x")
default:
print("y")
@unknown default:
print("z")
}
for a in b {
}
while true{
}
repeat {
} while (true)
guard let name = person["name"] else {
return
}
return (
x + 1
)
}