-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #1060 match RegExp `HAS_IMPORT` with `fileMayBeTailwindRelated()` --- ```js let HAS_IMPORT = /@import\s*('[^']+'|"[^"]+");/ let HAS_IMPORT = /@import\s*['"]/ // from fileMayBeTailwindRelated() ``` It seemed like the regex only accepted `@import '~~~';`, so `@import '~~~' layer(xxx);` did not match. Therefore, I loosened the regex of `HAS_IMPORT` a bit so that it would match the other parts. <sub>translated from japanese</sub>
- Loading branch information
Kim Hokyeong
authored
Sep 30, 2024
1 parent
6c3409a
commit 83cccdb
Showing
7 changed files
with
225 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
200 changes: 200 additions & 0 deletions
200
packages/tailwindcss-language-server/tests/fixtures/v4/auto-content-split/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
packages/tailwindcss-language-server/tests/fixtures/v4/auto-content-split/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"dependencies": { | ||
"tailwindcss": "^4.0.0-alpha.25", | ||
"@tailwindcss/oxide": "^4.0.0-alpha.25" | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/tailwindcss-language-server/tests/fixtures/v4/auto-content-split/src/app.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@import "tailwindcss/preflight" layer(base); | ||
@import "tailwindcss/theme" layer(theme); | ||
@import "tailwindcss/utilities" layer(utilities); |
1 change: 1 addition & 0 deletions
1
...lwindcss-language-server/tests/fixtures/v4/auto-content-split/src/components/example.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div class="underline">Test</div> |
1 change: 1 addition & 0 deletions
1
packages/tailwindcss-language-server/tests/fixtures/v4/auto-content-split/src/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div class="flex">Test</div> |