Skip to content

Commit

Permalink
Update SwiftSyntax (realm#4673)
Browse files Browse the repository at this point in the history
* Exclude `Documentation.docc` when building SwiftSyntax
* Remove references to `.stringInterpolationAnchor`

Co-authored-by: JP Simard <[email protected]>
  • Loading branch information
github-actions[bot] and jpsim authored Jan 6, 2023
1 parent 68dc0f5 commit bcfc2c4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax.git",
"state" : {
"revision" : "a2d31e8880224f5a619f24bf58c122836faf99ff"
"revision" : "60e2097fa967e3bd0a2c3f08b1c672865c1f1d60"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMinor(from: "1.2.0")),
.package(url: "https://github.com/apple/swift-syntax.git", revision: "a2d31e8880224f5a619f24bf58c122836faf99ff"),
.package(url: "https://github.com/apple/swift-syntax.git", revision: "60e2097fa967e3bd0a2c3f08b1c672865c1f1d60"),
.package(url: "https://github.com/jpsim/SourceKitten.git", .upToNextMinor(from: "0.33.1")),
.package(url: "https://github.com/jpsim/Yams.git", from: "5.0.1"),
.package(url: "https://github.com/scottrhoyt/SwiftyTextTable.git", from: "0.9.0"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,7 @@ private extension TokenSyntax {
.postfixQuestionMark,
.rightParen,
.rightSquareBracket,
.semicolon,
.stringInterpolationAnchor
.semicolon
]
if case .newlines = trailingTrivia.first {
return true
Expand Down
5 changes: 4 additions & 1 deletion bazel/SwiftSyntax.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ cc_library(

swift_library(
name = "SwiftSyntax",
srcs = glob(["Sources/SwiftSyntax/**/*.swift"]),
srcs = glob(
["Sources/SwiftSyntax/**/*.swift"],
exclude = ["Sources/SwiftSyntax/Documentation.docc/**"],
),
module_name = "SwiftSyntax",
private_deps = ["_CSwiftSyntax"],
)
Expand Down
6 changes: 3 additions & 3 deletions bazel/repos.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ def swiftlint_repos():

http_archive(
name = "com_github_apple_swift_syntax",
sha256 = "854c5cefdcfdb30fdc758db9cdad37fb9b78bb6897300e2ceb92f7be41bbe044", # SwiftSyntax sha256
sha256 = "18f910a68c06e7a11f813b781704bff2ef6ebd676ccc7506dc479fc95811a64f", # SwiftSyntax sha256
build_file = "@SwiftLint//bazel:SwiftSyntax.BUILD",
strip_prefix = "swift-syntax-a2d31e8880224f5a619f24bf58c122836faf99ff",
url = "https://github.com/apple/swift-syntax/archive/a2d31e8880224f5a619f24bf58c122836faf99ff.tar.gz",
strip_prefix = "swift-syntax-60e2097fa967e3bd0a2c3f08b1c672865c1f1d60",
url = "https://github.com/apple/swift-syntax/archive/60e2097fa967e3bd0a2c3f08b1c672865c1f1d60.tar.gz",
)

http_archive(
Expand Down

0 comments on commit bcfc2c4

Please sign in to comment.