We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72ee35c commit 16977f9Copy full SHA for 16977f9
Sources/SwiftParser/Expressions.swift
@@ -1981,9 +1981,9 @@ extension Parser {
1981
if let lparen = self.consume(if: .leftParen) {
1982
specifiers.append(lparen)
1983
if self.currentToken.tokenText == "safe" {
1984
- specifiers.append(self.expectWithoutRecovery(.identifier, where: { $0.tokenText == "safe" }))
+ specifiers.append(self.expectContextualKeywordWithoutRecovery("safe"))
1985
} else {
1986
- specifiers.append(self.expectWithoutRecovery(.identifier, where: { $0.tokenText == "unsafe" }))
+ specifiers.append(self.expectContextualKeywordWithoutRecovery("unsafe"))
1987
}
1988
specifiers.append(self.expectWithoutRecovery(.rightParen))
1989
0 commit comments