Commit 4cb548e
authored
Fix syntax error when resetting multi-word theme key namespaces (#1237)
Fixes #1236
This PR fixes an issue where we'd show a syntax error for multi-word
namespace resets like `--font-weight-*: initial;`:
```css
@theme {
--font-*: initial; /* this one is fine */
--font-weight-*: initial; /* this one shows a syntax error */
}
```
<img width="686" alt="Screenshot 2025-02-26 at 12 16 38"
src="https://github.com/user-attachments/assets/60a9e9e9-931a-485b-9a23-4ea972b02396"
/>
Now both work as expected:
<img width="763" alt="Screenshot 2025-02-26 at 12 17 09"
src="https://github.com/user-attachments/assets/4a245979-2b45-4931-b47a-6a5c0de42bf5"
/>1 parent eabd07e commit 4cb548e
File tree
4 files changed
+16
-6
lines changed- packages
- tailwindcss-language-server
- src/language
- tests/css
- vscode-tailwindcss
4 files changed
+16
-6
lines changedLines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
82 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
83 | 89 | | |
84 | 90 | | |
85 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
86 | 94 | | |
87 | 95 | | |
88 | 96 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
222 | 223 | | |
223 | 224 | | |
224 | 225 | | |
| |||
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
238 | | - | |
| 239 | + | |
239 | 240 | | |
240 | 241 | | |
241 | 242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
0 commit comments