From cfb5d2a4a21a7e67389c90171d251b6322a95cea Mon Sep 17 00:00:00 2001 From: laosb Date: Wed, 20 Aug 2025 11:47:26 +0800 Subject: [PATCH] fix: capturing source directives --- Plugins/TailwindCSS/TailwindCSSBuildPlugin.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Plugins/TailwindCSS/TailwindCSSBuildPlugin.swift b/Plugins/TailwindCSS/TailwindCSSBuildPlugin.swift index d13cd10..03ff51b 100644 --- a/Plugins/TailwindCSS/TailwindCSSBuildPlugin.swift +++ b/Plugins/TailwindCSS/TailwindCSSBuildPlugin.swift @@ -30,7 +30,7 @@ struct TailwindCSSBuildPlugin: BuildToolPlugin { "@source" ZeroOrMore(.whitespace) "\"" - Capture(ZeroOrMore(.word)) + Capture { OneOrMore(CharacterClass.anyOf("\"").inverted) } "\"" ZeroOrMore(.whitespace) ";" @@ -78,9 +78,10 @@ struct TailwindCSSBuildPlugin: BuildToolPlugin { let outputURL = outputBundleURL.appending( component: outputCSSFilename, directoryHint: .notDirectory) - print("Tailwind CSS Build Plugin: \(tailwindCSSURL.path)") + print("Tailwind CSS Build Plugin") print("Tailwind CSS File: \(tailwindCSSURL.path)") - print("Source files: \n -\(sourceURLs.map(\.path).joined(separator: "\n -"))") + print("@source declarations: \(sourcePaths)") + print("Source files: \(sourceURLs.map(\.path))") print("Output: \(outputURL.path)") return [