Skip to content

Commit 4adb173

Browse files
committed
Update the grammar to atom/language-javascript@c24bb4e
1 parent c16fb3e commit 4adb173

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

TypeScript.YAML-tmLanguage

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,7 +1886,7 @@ repository:
18861886
'1': {name: punctuation.definition.character-class.regexp}
18871887
patterns:
18881888
- 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])|(\\.))
18901890
captures:
18911891
'1': {name: constant.character.numeric.regexp}
18921892
'2': {name: constant.character.control.regexp}
@@ -1902,7 +1902,7 @@ repository:
19021902
- name: constant.other.character-class.regexp
19031903
match: \\[wWsSdDtrnvf]|\.
19041904
- 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})
19061906
- name: constant.character.control.regexp
19071907
match: \\c[A-Z]
19081908
- name: constant.character.escape.backslash.regexp
@@ -1928,7 +1928,7 @@ repository:
19281928

19291929
string-character-escape:
19301930
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]?|.|$)
19321932

19331933
template-substitution-element:
19341934
name: meta.template.expression.ts

TypeScript.tmLanguage

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5190,7 +5190,7 @@
51905190
<key>name</key>
51915191
<string>constant.other.character-class.range.regexp</string>
51925192
<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>
51945194
<key>captures</key>
51955195
<dict>
51965196
<key>1</key>
@@ -5251,7 +5251,7 @@
52515251
<key>name</key>
52525252
<string>constant.character.numeric.regexp</string>
52535253
<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>
52555255
</dict>
52565256
<dict>
52575257
<key>name</key>
@@ -5327,7 +5327,7 @@
53275327
<key>name</key>
53285328
<string>constant.character.escape.ts</string>
53295329
<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>
53315331
</dict>
53325332
<key>template-substitution-element</key>
53335333
<dict>

TypeScriptReact.tmLanguage

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5136,7 +5136,7 @@
51365136
<key>name</key>
51375137
<string>constant.other.character-class.range.regexp</string>
51385138
<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>
51405140
<key>captures</key>
51415141
<dict>
51425142
<key>1</key>
@@ -5197,7 +5197,7 @@
51975197
<key>name</key>
51985198
<string>constant.character.numeric.regexp</string>
51995199
<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>
52015201
</dict>
52025202
<dict>
52035203
<key>name</key>
@@ -5273,7 +5273,7 @@
52735273
<key>name</key>
52745274
<string>constant.character.escape.tsx</string>
52755275
<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>
52775277
</dict>
52785278
<key>template-substitution-element</key>
52795279
<dict>

0 commit comments

Comments
 (0)