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 @@ -381,6 +381,14 @@ function createVirtualCssDocument(textDocument: TextDocument): TextDocument {
381
381
)
382
382
. replace ( / (?< = \b (?: t h e m e | c o n f i g ) \( [ ^ ) ] * ) [ . [ \] ] / g, '_' )
383
383
384
+ . replace ( / - - v a l u e \( \[ ( \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
+
384
392
return TextDocument . create (
385
393
textDocument . uri ,
386
394
textDocument . languageId ,
You can’t perform that action at this time.
0 commit comments