File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
packages/tailwindcss-language-server/src/language Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -386,6 +386,14 @@ function createVirtualCssDocument(textDocument: TextDocument): TextDocument {
386
386
)
387
387
. replace ( / (?< = \b (?: t h e m e | c o n f i g ) \( [ ^ ) ] * ) [ . [ \] ] / g, '_' )
388
388
389
+ . replace ( / - - v a l u e \( \[ ( \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 } _])`
395
+ } )
396
+
389
397
return TextDocument . create (
390
398
textDocument . uri ,
391
399
textDocument . languageId ,
You can’t perform that action at this time.
0 commit comments