Skip to content

Commit 8c58914

Browse files
committed
Add trailing whitespace to await
1 parent 2d5575b commit 8c58914

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CodeGeneration/Sources/SyntaxSupport/KeywordSpec.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public let KEYWORDS: [KeywordSpec] = [
9696
KeywordSpec("autoclosure"),
9797
KeywordSpec("availability"),
9898
KeywordSpec("available"),
99-
KeywordSpec("await"),
99+
KeywordSpec("await", requiresTrailingSpace: true),
100100
KeywordSpec("backDeployed"),
101101
KeywordSpec("before"),
102102
KeywordSpec("block"),

Sources/SwiftBasicFormat/generated/BasicFormat.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,8 @@ open class BasicFormat: SyntaxRewriter {
285285
return true
286286
case .keyword(.async):
287287
return true
288+
case .keyword(.await):
289+
return true
288290
case .keyword(.`break`):
289291
return true
290292
case .keyword(.`case`):

0 commit comments

Comments
 (0)