@@ -54,58 +54,15 @@ export function activate(context: ExtensionContext) {
5454 context . subscriptions . push ( disposable ) ;
5555
5656 languages . setLanguageConfiguration ( 'css' , {
57- wordPattern : / ( # ? - ? \d * \. \d \w * % ? ) | ( : : ? [ \w - ] * (? = [ ^ , { ; ] * [ , { ] ) ) | ( ( [ @ # . ! ] ) ? [ \w - ? ] + % ? | [ @ # ! . ] ) / g,
58- comments : {
59- blockComment : [ '/*' , '*/' ]
60- } ,
61- brackets : [ [ '{' , '}' ] , [ '[' , ']' ] , [ '(' , ')' ] ] ,
62- __characterPairSupport : {
63- autoClosingPairs : [
64- { open : '{' , close : '}' } ,
65- { open : '[' , close : ']' } ,
66- { open : '(' , close : ')' } ,
67- { open : '"' , close : '"' , notIn : [ 'string' ] } ,
68- { open : '\'' , close : '\'' , notIn : [ 'string' ] }
69- ]
70- }
57+ wordPattern : / ( # ? - ? \d * \. \d \w * % ? ) | ( : : ? [ \w - ] * (? = [ ^ , { ; ] * [ , { ] ) ) | ( ( [ @ # . ! ] ) ? [ \w - ? ] + % ? | [ @ # ! . ] ) / g
7158 } ) ;
7259
7360 languages . setLanguageConfiguration ( 'less' , {
74- wordPattern : / ( # ? - ? \d * \. \d \w * % ? ) | ( : : ? [ \w - ] + (? = [ ^ , { ; ] * [ , { ] ) ) | ( ( [ @ # . ! ] ) ? [ \w - ? ] + % ? | [ @ # ! . ] ) / g,
75- comments : {
76- blockComment : [ '/*' , '*/' ] ,
77- lineComment : '//'
78- } ,
79- brackets : [ [ '{' , '}' ] , [ '[' , ']' ] , [ '(' , ')' ] , [ '<' , '>' ] ] ,
80- __characterPairSupport : {
81- autoClosingPairs : [
82- { open : '"' , close : '"' , notIn : [ 'string' , 'comment' ] } ,
83- { open : '\'' , close : '\'' , notIn : [ 'string' , 'comment' ] } ,
84- { open : '{' , close : '}' , notIn : [ 'string' , 'comment' ] } ,
85- { open : '[' , close : ']' , notIn : [ 'string' , 'comment' ] } ,
86- { open : '(' , close : ')' , notIn : [ 'string' , 'comment' ] } ,
87- { open : '<' , close : '>' , notIn : [ 'string' , 'comment' ] } ,
88- ]
89- }
61+ wordPattern : / ( # ? - ? \d * \. \d \w * % ? ) | ( : : ? [ \w - ] + (? = [ ^ , { ; ] * [ , { ] ) ) | ( ( [ @ # . ! ] ) ? [ \w - ? ] + % ? | [ @ # ! . ] ) / g
9062 } ) ;
9163
9264 languages . setLanguageConfiguration ( 'scss' , {
93- wordPattern : / ( # ? - ? \d * \. \d \w * % ? ) | ( : : ? [ \w - ] * (? = [ ^ , { ; ] * [ , { ] ) ) | ( ( [ @ $ # . ! ] ) ? [ \w - ? ] + % ? | [ @ # ! $ . ] ) / g,
94- comments : {
95- blockComment : [ '/*' , '*/' ] ,
96- lineComment : '//'
97- } ,
98- brackets : [ [ '{' , '}' ] , [ '[' , ']' ] , [ '(' , ')' ] , [ '<' , '>' ] ] ,
99- __characterPairSupport : {
100- autoClosingPairs : [
101- { open : '"' , close : '"' , notIn : [ 'string' , 'comment' ] } ,
102- { open : '\'' , close : '\'' , notIn : [ 'string' , 'comment' ] } ,
103- { open : '{' , close : '}' , notIn : [ 'string' , 'comment' ] } ,
104- { open : '[' , close : ']' , notIn : [ 'string' , 'comment' ] } ,
105- { open : '(' , close : ')' , notIn : [ 'string' , 'comment' ] } ,
106- { open : '<' , close : '>' , notIn : [ 'string' , 'comment' ] } ,
107- ]
108- }
65+ wordPattern : / ( # ? - ? \d * \. \d \w * % ? ) | ( : : ? [ \w - ] * (? = [ ^ , { ; ] * [ , { ] ) ) | ( ( [ @ $ # . ! ] ) ? [ \w - ? ] + % ? | [ @ # ! $ . ] ) / g
10966 } ) ;
11067
11168 commands . registerCommand ( '_css.applyCodeAction' , applyCodeAction ) ;
0 commit comments