From e5fb31e8637e4c11047521b5977b49c9c5498c78 Mon Sep 17 00:00:00 2001 From: Bror Date: Thu, 27 Nov 2025 22:51:28 +0100 Subject: [PATCH] fix(swift): tree-sitter-swift missing parser.c The current HEAD on https://github.com/alex-pinkus/tree-sitter-swift does not include generated files. Use a tag that does. The solution proposed in the repository of downloading artifacts from an action is not feasible as they expire and become unavailable. --- modules/lang/swift/config.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/lang/swift/config.el b/modules/lang/swift/config.el index 8a16bdb0f..70b238a10 100644 --- a/modules/lang/swift/config.el +++ b/modules/lang/swift/config.el @@ -5,7 +5,8 @@ :init (when (modulep! +tree-sitter) (set-tree-sitter! 'swift-mode 'swift-ts-mode - '((swift :url "https://github.com/alex-pinkus/tree-sitter-swift")))) + '((swift :url "https://github.com/alex-pinkus/tree-sitter-swift" + :rev "0.7.1-with-generated-files")))) :config (set-repl-handler! 'swift-mode #'run-swift)