Skip to content

Commit 80a1a96

Browse files
committed
Add backticks to default token initialization
1 parent 71ab8cc commit 80a1a96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftSyntaxBuilderGeneration/SyntaxBuildableType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ struct SyntaxBuildableType: Hashable {
4646
return NilLiteralExpr()
4747
} else if isToken {
4848
if let token = token, token.text != nil {
49-
return MemberAccessExpr(base: "TokenSyntax", name: lowercaseFirstWord(name: token.name))
49+
return MemberAccessExpr(base: "TokenSyntax", name: lowercaseFirstWord(name: token.name).backticked)
5050
} else if tokenKind == "EOFToken" {
5151
return MemberAccessExpr(base: "TokenSyntax", name: "eof")
5252
}

0 commit comments

Comments
 (0)