Skip to content

Commit 719d14c

Browse files
committed
Fix mappedTokenChoices
1 parent 8672546 commit 719d14c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftSyntaxBuilderGeneration/Child.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class Child {
101101
mappedTokenChoices.append(token)
102102
}
103103

104-
mappedTokenChoices.append(contentsOf: tokenChoices.compactMap { SYNTAX_TOKEN_MAP[$0] })
104+
mappedTokenChoices.append(contentsOf: tokenChoices.compactMap { SYNTAX_TOKEN_MAP["\($0)Token"] })
105105
self.tokenChoices = mappedTokenChoices
106106

107107
// A list of valid text for tokens, if specified.

0 commit comments

Comments
 (0)