Skip to content

Commit fa77d15

Browse files
committed
Add "freestanding" to KeywordSpec so we can recognize @freestanding
1 parent 114a6a1 commit fa77d15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CodeGeneration/Sources/SyntaxSupport/KeywordSpec.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ public enum Keyword: CaseIterable {
185185
case discard
186186
case forward
187187
case `func`
188+
case freestanding
188189
case get
189190
case `guard`
190191
case higherThan
@@ -508,6 +509,8 @@ public enum Keyword: CaseIterable {
508509
return KeywordSpec("forward")
509510
case .func:
510511
return KeywordSpec("func", isLexerClassified: true)
512+
case .freestanding:
513+
return KeywordSpec("freestanding")
511514
case .get:
512515
return KeywordSpec("get")
513516
case .guard:

0 commit comments

Comments
 (0)