From 3aa55c97c04d5d33503bacdb1e6d895403270970 Mon Sep 17 00:00:00 2001 From: Donnie Adams Date: Wed, 22 Oct 2025 20:04:01 -0400 Subject: [PATCH 1/2] chore: add comment language injection Signed-off-by: Donnie Adams --- languages/swift/injections.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/languages/swift/injections.scm b/languages/swift/injections.scm index 9244a4e..32d56b9 100644 --- a/languages/swift/injections.scm +++ b/languages/swift/injections.scm @@ -2,3 +2,9 @@ ((regex_literal) @injection.content (#set! injection.language "regex")) + +((comment) @injection.content + (#set! injection.language "comment")) + +((multiline_comment) @injection.content + (#set! injection.language "comment")) From 936bad5c5ba1043ddeb097ccbb79f7549f6dc1a9 Mon Sep 17 00:00:00 2001 From: MrSubidubi Date: Tue, 28 Oct 2025 11:08:39 +0100 Subject: [PATCH 2/2] Combine injections --- languages/swift/injections.scm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/languages/swift/injections.scm b/languages/swift/injections.scm index 32d56b9..35c9020 100644 --- a/languages/swift/injections.scm +++ b/languages/swift/injections.scm @@ -3,8 +3,10 @@ ((regex_literal) @injection.content (#set! injection.language "regex")) -((comment) @injection.content - (#set! injection.language "comment")) - -((multiline_comment) @injection.content - (#set! injection.language "comment")) +( + [ + (comment) + (multiline_comment) + ] @injection.content + (#set! injection.language "comment") +)