mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
Use SwiftSyntax version 600.0.0-prerelease-2024-03-11 (#5527)
We can also switch back to an exact SwiftSyntax version now with the plugins in a separate repository. In fact, using the plugin, no direct dependency to SwiftSyntax is required whatsoever.
This commit is contained in:
@@ -349,8 +349,6 @@ public extension ClosureCaptureSyntax {
|
||||
}
|
||||
}
|
||||
|
||||
extension PrecedenceGroupDeclSyntax: BracedSyntax {}
|
||||
|
||||
private extension String {
|
||||
var isZero: Bool {
|
||||
if self == "0" { // fast path
|
||||
|
||||
@@ -6,7 +6,7 @@ public extension SyntaxClassification {
|
||||
switch self {
|
||||
case .lineComment, .docLineComment, .blockComment, .docBlockComment:
|
||||
return true
|
||||
case .none, .keyword, .identifier, .type, .operator, .dollarIdentifier, .integerLiteral,
|
||||
case .none, .keyword, .identifier, .type, .operator, .dollarIdentifier, .integerLiteral, .argumentLabel,
|
||||
.floatLiteral, .stringLiteral, .ifConfigDirective, .attribute, .editorPlaceholder, .regexLiteral:
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user