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(
159159 end : position ,
160160 } )
161161
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+ )
163166
164167 if ( match === null ) {
165168 return null
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ export function findClassListsInHtmlRange(
209209) : DocumentClassList [ ] {
210210 const text = doc . getText ( range )
211211 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,
213213 text
214214 )
215215 const result : DocumentClassList [ ] = [ ]
You can’t perform that action at this time.
0 commit comments