Skip to content

Commit 0a20233

Browse files
committed
wip
1 parent cbc96a6 commit 0a20233

File tree

1 file changed

+3
-6
lines changed
  • packages/tailwindcss-language-server/src/language

1 file changed

+3
-6
lines changed

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

+3-6
Original file line numberDiff line numberDiff line change
@@ -386,12 +386,9 @@ function createVirtualCssDocument(textDocument: TextDocument): TextDocument {
386386
)
387387
.replace(/(?<=\b(?:theme|config)\([^)]*)[.[\]]/g, '_')
388388

389-
.replace(/--value\(\[(\s?)\*\]\)/g, (_match, space) => {
390-
// In this case, space represents a single character space.
391-
// From what I can tell spaces aren't intended, so I limited this to a single matcher.
392-
// This is because Prettier likes to add a space before the `*`.
393-
// FIXME: This is probably unintentional behavior. Consider fixing.
394-
return `--value([${space}_])`
389+
// Ignore `*` in in --value and --modifier functions
390+
.replace(/--(value|modifier)\((.*?)\)/g, (match) => {
391+
return match.replace(/[*]/g, ' ')
395392
})
396393

397394
return TextDocument.create(

0 commit comments

Comments
 (0)