@@ -155,8 +155,8 @@ const registerCompletionProvider = (
155
155
break ;
156
156
}
157
157
case "javascript" : {
158
- const REGEXP1 = / c l a s s N a m e = (?: { ? " | { ? ' | { ? ` ) ( [ \w - @ : \/ ] * $ ) / ;
159
- const REGEXP2 = / c l a s s = (?: { ? " | { ? ' ) ( [ \w - @ : \/ ] * $ ) / ;
158
+ const REGEXP1 = / c l a s s N a m e = (?: { ? " | { ? ' | { ? ` ) ( [ - \w , @ \\ : \[ \] ] * $ ) / ;
159
+ const REGEXP2 = / c l a s s = (?: { ? " | { ? ' ) ( [ - \w , @ \\ : \[ \] ] * $ ) / ;
160
160
161
161
let matched = false ;
162
162
@@ -330,7 +330,7 @@ const registerHTMLProviders = (disposables: Disposable[]) =>
330
330
workspace . getConfiguration ( )
331
331
?. get < string [ ] > ( Configuration . HTMLLanguages )
332
332
?. forEach ( ( extension ) => {
333
- disposables . push ( registerCompletionProvider ( extension , { type : "regexp" , classMatchRegex : / c l a s s = [ " | ' ] ( [ \w - @ : \/ ] * $ ) / } ) ) ;
333
+ disposables . push ( registerCompletionProvider ( extension , { type : "regexp" , classMatchRegex : / c l a s s = [ " | ' ] ( [ - \w , @ \\ : \[ \] ] * $ ) / } ) ) ;
334
334
} ) ;
335
335
336
336
const registerCSSProviders = ( disposables : Disposable [ ] ) =>
@@ -340,15 +340,15 @@ const registerCSSProviders = (disposables: Disposable[]) =>
340
340
// The @apply rule was a CSS proposal which has since been abandoned,
341
341
// check the proposal for more info: http://tabatkins.github.io/specs/css-apply-rule/
342
342
// Its support should probably be removed
343
- disposables . push ( registerCompletionProvider ( extension , { type : "regexp" , classMatchRegex : / @ a p p l y ( [ . \w - @ : \/ ] * $ ) / } , "." ) ) ;
343
+ disposables . push ( registerCompletionProvider ( extension , { type : "regexp" , classMatchRegex : / @ a p p l y ( (?: \. | [ - \w , @ \\ : \[ \] ] ) * $ ) / } , "." ) ) ;
344
344
} ) ;
345
345
346
346
const registerJavaScriptProviders = ( disposables : Disposable [ ] ) =>
347
347
workspace . getConfiguration ( )
348
348
. get < string [ ] > ( Configuration . JavaScriptLanguages )
349
349
?. forEach ( ( extension ) => {
350
350
disposables . push ( registerCompletionProvider ( extension , { type : "javascript" } ) ) ;
351
- disposables . push ( registerDefinitionProvider ( extension , / c l a s s (?: N a m e ) ? = [ " | ' ] ( [ \w - ] * $ ) / ) ) ;
351
+ disposables . push ( registerDefinitionProvider ( extension , / c l a s s (?: N a m e ) ? = (?: \{ ? [ " ' ` ] ) ( [ - \w , @ \\ : \[ \] ] * $ ) / ) ) ;
352
352
} ) ;
353
353
354
354
function registerEmmetProviders ( disposables : Disposable [ ] ) {
0 commit comments