@@ -141,29 +141,29 @@ const registerHTMLProviders = (disposables: Disposable[]) =>
141141 workspace . getConfiguration ( )
142142 ?. get < string [ ] > ( Configuration . HTMLLanguages )
143143 ?. forEach ( ( extension ) => {
144- disposables . push ( registerCompletionProvider ( extension , / c l a s s = [ " | ' ] ( [ \w - ] * $ ) / ) ) ;
144+ disposables . push ( registerCompletionProvider ( extension , / c l a s s = [ " | ' ] ( [ \w - @ : \/ ] * $ ) / ) ) ;
145145 } ) ;
146146
147- const registerCSSProviders = ( disposables : Disposable [ ] ) =>
147+ const registerCSSProviders = ( disposables : Disposable [ ] ) =>
148148 workspace . getConfiguration ( )
149149 . get < string [ ] > ( Configuration . CSSLanguages )
150150 ?. forEach ( ( extension ) => {
151151 // The @apply rule was a CSS proposal which has since been abandoned,
152152 // check the proposal for more info: http://tabatkins.github.io/specs/css-apply-rule/
153153 // Its support should probably be removed
154- disposables . push ( registerCompletionProvider ( extension , / @ a p p l y ( [ . \w - ] * $ ) / , "." ) ) ;
154+ disposables . push ( registerCompletionProvider ( extension , / @ a p p l y ( [ . \w - @ : \/ ] * $ ) / , "." ) ) ;
155155 } ) ;
156156
157157const registerJavaScriptProviders = ( disposables : Disposable [ ] ) =>
158158 workspace . getConfiguration ( )
159159 . get < string [ ] > ( Configuration . JavaScriptLanguages )
160160 ?. forEach ( ( extension ) => {
161- disposables . push ( registerCompletionProvider ( extension , / c l a s s N a m e = [ " | ' ] ( [ \w - ] * $ ) / ) ) ;
162- disposables . push ( registerCompletionProvider ( extension , / c l a s s = [ " | ' ] ( [ \w - ] * $ ) / ) ) ;
161+ disposables . push ( registerCompletionProvider ( extension , / c l a s s N a m e = [ " | ' ] ( [ \w - @ : \/ ] * $ ) / ) ) ;
162+ disposables . push ( registerCompletionProvider ( extension , / c l a s s = [ " | ' ] ( [ \w - @ : \/ ] * $ ) / ) ) ;
163163 } ) ;
164164
165165function registerEmmetProviders ( disposables : Disposable [ ] ) {
166- const emmetRegex = / (? = \. ) ( [ \w - . ] * $ ) / ;
166+ const emmetRegex = / (? = \. ) ( [ \w - @ : \/ . ] * $ ) / ;
167167
168168 const registerProviders = ( modes : string [ ] ) => {
169169 modes . forEach ( ( language ) => {
0 commit comments