Skip to content

Commit 95bee5c

Browse files
thecrypticacetizu69
andcommitted
Fix —value([*]) syntax error
Co-authored-by: tizu69 <[email protected]>
1 parent d13afff commit 95bee5c

File tree

1 file changed

+5
-0
lines changed
  • packages/tailwindcss-language-server/src/language

1 file changed

+5
-0
lines changed

packages/tailwindcss-language-server/src/language/rewriting.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,10 @@ export function rewriteCss(css: string) {
6868

6969
css = css.replace(/(?<=\b(?:theme|config)\([^)]*)[.[\]]/g, '_')
7070

71+
// Ignore `*` in in --value and --modifier functions
72+
css = css.replace(/--(value|modifier)\((.*?)\)/g, (match) => {
73+
return match.replace(/[*]/g, ' ')
74+
})
75+
7176
return css
7277
}

0 commit comments

Comments
 (0)