File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
packages/tailwindcss-language-service/src Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,10 @@ function provideClassAttributeCompletions(
159
159
end : position ,
160
160
} )
161
161
162
- const match = findLast ( / (?: \s | : ) (?: c l a s s (?: N a m e ) ? | \[ n g C l a s s \] ) = [ ' " ` { ] / gi, str )
162
+ const match = findLast (
163
+ / (?: \s | : | \( ) (?: c l a s s (?: N a m e ) ? | \[ n g C l a s s \] ) = [ ' " ` { ] / gi,
164
+ str
165
+ )
163
166
164
167
if ( match === null ) {
165
168
return null
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ export function findClassListsInHtmlRange(
209
209
) : DocumentClassList [ ] {
210
210
const text = doc . getText ( range )
211
211
const matches = findAll (
212
- / (?: \s | : ) (?: c l a s s (?: N a m e ) ? | \[ n g C l a s s \] ) = [ ' " ` { ] / g,
212
+ / (?: \s | : | \( ) (?: c l a s s (?: N a m e ) ? | \[ n g C l a s s \] ) = [ ' " ` { ] / g,
213
213
text
214
214
)
215
215
const result : DocumentClassList [ ] = [ ]
You can’t perform that action at this time.
0 commit comments