Skip to content

Commit 4e74824

Browse files
committed
Detect paths in source() directives
1 parent c591108 commit 4e74824

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/tailwindcss-language-service/src/documentLinksProvider.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ export function getDocumentLinks(
2222
patterns.push(
2323
/@plugin\s*(?<path>'[^']+'|"[^"]+")/g,
2424
/@source\s*(?<path>'[^']+'|"[^"]+")/g,
25+
/@import\s*('[^']*'|"[^"]*")\s*source\((?<path>'[^']*'?|"[^"]*"?)/g,
26+
/@tailwind\s*utilities\s*source\((?<path>'[^']*'?|"[^"]*"?)/g,
2527
)
2628
}
2729

0 commit comments

Comments
 (0)