We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 554cb09 commit 8f31445Copy full SHA for 8f31445
packages/tailwindcss-language-server/src/language/cssServer.ts
@@ -381,6 +381,14 @@ function createVirtualCssDocument(textDocument: TextDocument): TextDocument {
381
)
382
.replace(/(?<=\b(?:theme|config)\([^)]*)[.[\]]/g, '_')
383
384
+ .replace(/--value\(\[(\s?)\*\]\)/g, (_match, space) => {
385
+ // In this case, space represents a single character space.
386
+ // From what I can tell spaces aren't intended, so I limited this to a single matcher.
387
+ // This is because Prettier likes to add a space before the `*`.
388
+ // FIXME: This is probably unintentional behavior. Consider fixing.
389
+ return `--value([${space}_])`
390
+ })
391
+
392
return TextDocument.create(
393
textDocument.uri,
394
textDocument.languageId,
0 commit comments