File tree 1 file changed +3
-6
lines changed
packages/tailwindcss-language-server/src/language
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -386,12 +386,9 @@ 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 } _])`
389
+ // Ignore `*` in in --value and --modifier functions
390
+ . replace ( / - - ( v a l u e | m o d i f i e r ) \( ( .* ?) \) / g, ( match ) => {
391
+ return match . replace ( / [ * ] / g, ' ' )
395
392
} )
396
393
397
394
return TextDocument . create (
You can’t perform that action at this time.
0 commit comments