File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -1886,7 +1886,7 @@ repository:
1886
1886
' 1 ' : {name: punctuation.definition.character-class.regexp}
1887
1887
patterns :
1888
1888
- name : constant.other.character-class.range.regexp
1889
- match : (?:.|(\\(?:[0-7]{3}|x\h\h|u\h\h\h\h ))|(\\c[A-Z])|(\\.))\-(?:[^\]\\]|(\\(?:[0-7]{3}|x\h\h|u\h\h\h\h ))|(\\c[A-Z])|(\\.))
1889
+ match : (?:.|(\\(?:[0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4} ))|(\\c[A-Z])|(\\.))\-(?:[^\]\\]|(\\(?:[0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4} ))|(\\c[A-Z])|(\\.))
1890
1890
captures :
1891
1891
' 1 ' : {name: constant.character.numeric.regexp}
1892
1892
' 2 ' : {name: constant.character.control.regexp}
@@ -1902,7 +1902,7 @@ repository:
1902
1902
- name : constant.other.character-class.regexp
1903
1903
match : \\[wWsSdDtrnvf]|\.
1904
1904
- name : constant.character.numeric.regexp
1905
- match : \\([0-7]{3}|x\h\h|u\h\h\h\h )
1905
+ match : \\([0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4} )
1906
1906
- name : constant.character.control.regexp
1907
1907
match : \\c[A-Z]
1908
1908
- name : constant.character.escape.backslash.regexp
@@ -1928,7 +1928,7 @@ repository:
1928
1928
1929
1929
string-character-escape :
1930
1930
name : constant.character.escape.ts
1931
- match : \\(x\h {2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)
1931
+ match : \\(x[0-9A-Fa-f] {2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)
1932
1932
1933
1933
template-substitution-element :
1934
1934
name : meta.template.expression.ts
Original file line number Diff line number Diff line change 5190
5190
<key >name </key >
5191
5191
<string >constant.other.character-class.range.regexp </string >
5192
5192
<key >match </key >
5193
- <string >(?:.|(\\(?:[0-7]{3}|x\h\h|u\h\h\h\h ))|(\\c[A-Z])|(\\.))\-(?:[^\]\\]|(\\(?:[0-7]{3}|x\h\h|u\h\h\h\h ))|(\\c[A-Z])|(\\.)) </string >
5193
+ <string >(?:.|(\\(?:[0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4} ))|(\\c[A-Z])|(\\.))\-(?:[^\]\\]|(\\(?:[0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4} ))|(\\c[A-Z])|(\\.)) </string >
5194
5194
<key >captures </key >
5195
5195
<dict >
5196
5196
<key >1 </key >
5251
5251
<key >name </key >
5252
5252
<string >constant.character.numeric.regexp </string >
5253
5253
<key >match </key >
5254
- <string >\\([0-7]{3}|x\h\h|u\h\h\h\h ) </string >
5254
+ <string >\\([0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4} ) </string >
5255
5255
</dict >
5256
5256
<dict >
5257
5257
<key >name </key >
5327
5327
<key >name </key >
5328
5328
<string >constant.character.escape.ts </string >
5329
5329
<key >match </key >
5330
- <string >\\(x\h {2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$) </string >
5330
+ <string >\\(x[0-9A-Fa-f] {2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$) </string >
5331
5331
</dict >
5332
5332
<key >template-substitution-element </key >
5333
5333
<dict >
Original file line number Diff line number Diff line change 5136
5136
<key >name </key >
5137
5137
<string >constant.other.character-class.range.regexp </string >
5138
5138
<key >match </key >
5139
- <string >(?:.|(\\(?:[0-7]{3}|x\h\h|u\h\h\h\h ))|(\\c[A-Z])|(\\.))\-(?:[^\]\\]|(\\(?:[0-7]{3}|x\h\h|u\h\h\h\h ))|(\\c[A-Z])|(\\.)) </string >
5139
+ <string >(?:.|(\\(?:[0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4} ))|(\\c[A-Z])|(\\.))\-(?:[^\]\\]|(\\(?:[0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4} ))|(\\c[A-Z])|(\\.)) </string >
5140
5140
<key >captures </key >
5141
5141
<dict >
5142
5142
<key >1 </key >
5197
5197
<key >name </key >
5198
5198
<string >constant.character.numeric.regexp </string >
5199
5199
<key >match </key >
5200
- <string >\\([0-7]{3}|x\h\h|u\h\h\h\h ) </string >
5200
+ <string >\\([0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4} ) </string >
5201
5201
</dict >
5202
5202
<dict >
5203
5203
<key >name </key >
5273
5273
<key >name </key >
5274
5274
<string >constant.character.escape.tsx </string >
5275
5275
<key >match </key >
5276
- <string >\\(x\h {2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$) </string >
5276
+ <string >\\(x[0-9A-Fa-f] {2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$) </string >
5277
5277
</dict >
5278
5278
<key >template-substitution-element </key >
5279
5279
<dict >
You can’t perform that action at this time.
0 commit comments