@@ -738,6 +738,14 @@ repository:
738738 ' 12 ' : {name: constant.character.escape.tab.python}
739739 ' 13 ' : {name: constant.character.escape.vertical-tab.python}
740740
741+ escaped_char_raw_double :
742+ name : constant.character.escape.quote.python
743+ match : \\"
744+
745+ escaped_char_raw_single :
746+ name : constant.character.escape.quote.python
747+ match : \\'
748+
741749 escaped_unicode_char :
742750 match : (\\U[\h]{8})|(\\u[\h]{4})|(\\N\{[a-zA-Z0-9\, ]+\})
743751 captures :
@@ -976,6 +984,7 @@ repository:
976984 ' 2 ' : {name: meta.empty-string.double.python}
977985 patterns :
978986 - include : ' #constant_placeholder'
987+ - include : ' #escaped_char_raw_double'
979988 - include : ' #regular_expressions'
980989 - name : string.quoted.double.block.unicode-raw.python
981990 begin : ([uU]R)(""")
@@ -988,6 +997,7 @@ repository:
988997 ' 2 ' : {name: meta.empty-string.double.python}
989998 patterns :
990999 - include : ' #constant_placeholder'
1000+ - include : ' #escaped_char_raw_double'
9911001 - name : string.quoted.double.block.bytes-raw-regex.python
9921002 begin : ([bB]r)(""")
9931003 beginCaptures :
@@ -999,6 +1009,7 @@ repository:
9991009 ' 2 ' : {name: meta.empty-string.double.python}
10001010 patterns :
10011011 - include : ' #constant_placeholder'
1012+ - include : ' #escaped_char_raw_double'
10021013 - include : ' #regular_expressions'
10031014 - name : string.quoted.double.block.bytes-raw.python
10041015 begin : ([bB]R)(""")
@@ -1011,6 +1022,7 @@ repository:
10111022 ' 2 ' : {name: meta.empty-string.double.python}
10121023 patterns :
10131024 - include : ' #constant_placeholder'
1025+ - include : ' #escaped_char_raw_double'
10141026 - name : string.quoted.double.block.raw-regex.python
10151027 begin : (r)(""")
10161028 beginCaptures :
@@ -1022,6 +1034,7 @@ repository:
10221034 ' 2 ' : {name: meta.empty-string.double.python}
10231035 patterns :
10241036 - include : ' #constant_placeholder'
1037+ - include : ' #escaped_char_raw_double'
10251038 - include : ' #regular_expressions'
10261039 - name : string.quoted.double.block.raw.python
10271040 begin : (R)(""")
@@ -1034,6 +1047,7 @@ repository:
10341047 ' 2 ' : {name: meta.empty-string.double.python}
10351048 patterns :
10361049 - include : ' #constant_placeholder'
1050+ - include : ' #escaped_char_raw_double'
10371051 - comment : double quoted unicode string
10381052 name : string.quoted.double.block.unicode.python
10391053 begin : ([uU])(""")
@@ -1074,6 +1088,7 @@ repository:
10741088 ' 3 ' : {name: invalid.illegal.unclosed-string.python}
10751089 patterns :
10761090 - include : ' #constant_placeholder'
1091+ - include : ' #escaped_char_raw_double'
10771092 - include : ' #regular_expressions'
10781093 - name : string.quoted.double.single-line.unicode-raw.python
10791094 begin : ([uU]R)(")
@@ -1087,6 +1102,7 @@ repository:
10871102 ' 3 ' : {name: invalid.illegal.unclosed-string.python}
10881103 patterns :
10891104 - include : ' #constant_placeholder'
1105+ - include : ' #escaped_char_raw_double'
10901106 - name : string.quoted.double.single-line.bytes-raw-regex.python
10911107 begin : ([bB]r)(")
10921108 beginCaptures :
@@ -1099,6 +1115,7 @@ repository:
10991115 ' 3 ' : {name: invalid.illegal.unclosed-string.python}
11001116 patterns :
11011117 - include : ' #constant_placeholder'
1118+ - include : ' #escaped_char_raw_double'
11021119 - include : ' #regular_expressions'
11031120 - name : string.quoted.double.single-line.bytes-raw.python
11041121 begin : ([bB]R)(")
@@ -1112,6 +1129,7 @@ repository:
11121129 ' 3 ' : {name: invalid.illegal.unclosed-string.python}
11131130 patterns :
11141131 - include : ' #constant_placeholder'
1132+ - include : ' #escaped_char_raw_double'
11151133 - name : string.quoted.double.single-line.raw-regex.python
11161134 begin : (r)(")
11171135 beginCaptures :
@@ -1124,6 +1142,7 @@ repository:
11241142 ' 3 ' : {name: invalid.illegal.unclosed-string.python}
11251143 patterns :
11261144 - include : ' #constant_placeholder'
1145+ - include : ' #escaped_char_raw_double'
11271146 - include : ' #regular_expressions'
11281147 - name : string.quoted.double.single-line.raw.python
11291148 begin : (R)(")
@@ -1137,6 +1156,7 @@ repository:
11371156 ' 3 ' : {name: invalid.illegal.unclosed-string.python}
11381157 patterns :
11391158 - include : ' #constant_placeholder'
1159+ - include : ' #escaped_char_raw_double'
11401160 - comment : double quoted unicode string
11411161 name : string.quoted.double.single-line.unicode.python
11421162 begin : ([uU])(")
@@ -1214,6 +1234,7 @@ repository:
12141234 ' 2 ' : {name: meta.empty-string.single.python}
12151235 patterns :
12161236 - include : ' #constant_placeholder'
1237+ - include : ' #escaped_char_raw_single'
12171238 - include : ' #regular_expressions'
12181239 - name : string.quoted.single.block.unicode-raw.python
12191240 begin : ([uU]R)(''')
@@ -1226,6 +1247,7 @@ repository:
12261247 ' 2 ' : {name: meta.empty-string.single.python}
12271248 patterns :
12281249 - include : ' #constant_placeholder'
1250+ - include : ' #escaped_char_raw_single'
12291251 - name : string.quoted.single.block.bytes-raw-regex.python
12301252 begin : ([bB]r)(''')
12311253 beginCaptures :
@@ -1237,6 +1259,7 @@ repository:
12371259 ' 2 ' : {name: meta.empty-string.single.python}
12381260 patterns :
12391261 - include : ' #constant_placeholder'
1262+ - include : ' #escaped_char_raw_single'
12401263 - include : ' #regular_expressions'
12411264 - name : string.quoted.single.block.bytes-raw.python
12421265 begin : ([bB]R)(''')
@@ -1249,6 +1272,7 @@ repository:
12491272 ' 2 ' : {name: meta.empty-string.single.python}
12501273 patterns :
12511274 - include : ' #constant_placeholder'
1275+ - include : ' #escaped_char_raw_single'
12521276 - name : string.quoted.single.block.raw-regex.python
12531277 begin : (r)(''')
12541278 beginCaptures :
@@ -1260,6 +1284,7 @@ repository:
12601284 ' 2 ' : {name: meta.empty-string.single.python}
12611285 patterns :
12621286 - include : ' #constant_placeholder'
1287+ - include : ' #escaped_char_raw_single'
12631288 - include : ' #regular_expressions'
12641289 - name : string.quoted.single.block.raw.python
12651290 begin : (R)(''')
@@ -1272,6 +1297,7 @@ repository:
12721297 ' 2 ' : {name: meta.empty-string.single.python}
12731298 patterns :
12741299 - include : ' #constant_placeholder'
1300+ - include : ' #escaped_char_raw_single'
12751301 - name : string.quoted.single.block.unicode.python
12761302 begin : ([uU])(''')
12771303 beginCaptures :
@@ -1310,6 +1336,7 @@ repository:
13101336 ' 2 ' : {name: invalid.illegal.unclosed-string.python}
13111337 patterns :
13121338 - include : ' #constant_placeholder'
1339+ - include : ' #escaped_char_raw_single'
13131340 - include : ' #regular_expressions'
13141341 - name : string.quoted.single.single-line.unicode-raw.python
13151342 begin : ([uU]R)(')
@@ -1322,6 +1349,7 @@ repository:
13221349 ' 2 ' : {name: invalid.illegal.unclosed-string.python}
13231350 patterns :
13241351 - include : ' #constant_placeholder'
1352+ - include : ' #escaped_char_raw_single'
13251353 - name : string.quoted.single.single-line.bytes-raw-regex.python
13261354 begin : ([bB]r)(')
13271355 beginCaptures :
@@ -1333,6 +1361,7 @@ repository:
13331361 ' 2 ' : {name: invalid.illegal.unclosed-string.python}
13341362 patterns :
13351363 - include : ' #constant_placeholder'
1364+ - include : ' #escaped_char_raw_single'
13361365 - include : ' #regular_expressions'
13371366 - name : string.quoted.single.single-line.bytes-raw.python
13381367 begin : ([bB]R)(')
@@ -1345,6 +1374,7 @@ repository:
13451374 ' 2 ' : {name: invalid.illegal.unclosed-string.python}
13461375 patterns :
13471376 - include : ' #constant_placeholder'
1377+ - include : ' #escaped_char_raw_single'
13481378 - name : string.quoted.single.single-line.raw-regex.python
13491379 begin : (r)(')
13501380 beginCaptures :
@@ -1356,6 +1386,7 @@ repository:
13561386 ' 2 ' : {name: invalid.illegal.unclosed-string.python}
13571387 patterns :
13581388 - include : ' #constant_placeholder'
1389+ - include : ' #escaped_char_raw_single'
13591390 - include : ' #regular_expressions'
13601391 - name : string.quoted.single.single-line.raw.python
13611392 begin : (R)(')
@@ -1368,6 +1399,7 @@ repository:
13681399 ' 2 ' : {name: invalid.illegal.unclosed-string.python}
13691400 patterns :
13701401 - include : ' #constant_placeholder'
1402+ - include : ' #escaped_char_raw_single'
13711403 - comment : single quoted unicode string
13721404 name : string.quoted.single.single-line.unicode.python
13731405 begin : ([uU])(')
0 commit comments