File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ function provideClassAttributeCompletions(
130130 end : position ,
131131 } )
132132
133- const match = findLast ( / (?: \b | : ) c l a s s (?: N a m e ) ? = [ ' " ` { ] / gi , str )
133+ const match = findLast ( / (?: \b | : ) c l a s s (?: N a m e ) ? = [ ' " ` { ] | \b t w = [ ' " { ] | \b t w (?: \. \w + ) ? ` / g , str )
134134
135135 if ( match === null ) {
136136 return null
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ export function findClassListsInHtmlRange(
135135 range ?: Range
136136) : DocumentClassList [ ] {
137137 const text = doc . getText ( range )
138- const matches = findAll ( / (?: \b | : ) c l a s s (?: N a m e ) ? = [ ' " ` { ] / g, text )
138+ const matches = findAll ( / (?: \b | : ) c l a s s (?: N a m e ) ? = [ ' " ` { ] | \b t w = [ ' " { ] | \b t w (?: \. \w + ) ? ` / g, text )
139139 const result : DocumentClassList [ ] = [ ]
140140
141141 matches . forEach ( ( match ) => {
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ export const getClassAttributeLexer = lazy(() =>
4848 start1 : { match : '"' , push : 'doubleClassList' } ,
4949 start2 : { match : "'" , push : 'singleClassList' } ,
5050 start3 : { match : '{' , push : 'interpBrace' } ,
51+ start4 : { match : '`' , push : 'tickClassList' } ,
5152 } ,
5253 ...classAttributeStates ,
5354 } )
You can’t perform that action at this time.
0 commit comments