|
101 | 101 | </dict>
|
102 | 102 | <dict>
|
103 | 103 | <key>begin</key>
|
104 |
| - <string>(?<!')'</string> |
| 104 | + <string>['\x{2018}-\x{201B}]</string> |
105 | 105 | <key>beginCaptures</key>
|
106 | 106 | <dict>
|
107 | 107 | <key>0</key>
|
|
111 | 111 | </dict>
|
112 | 112 | </dict>
|
113 | 113 | <key>end</key>
|
114 |
| - <string>'(?!')</string> |
| 114 | + <string>['\x{2018}-\x{201B}]</string> |
| 115 | + <key>applyEndPatternLast</key> |
| 116 | + <true/> |
115 | 117 | <key>endCaptures</key>
|
116 | 118 | <dict>
|
117 | 119 | <key>0</key>
|
|
126 | 128 | <array>
|
127 | 129 | <dict>
|
128 | 130 | <key>match</key>
|
129 |
| - <string>''</string> |
| 131 | + <string>['\x{2018}-\x{201B}]{2}</string> |
130 | 132 | <key>name</key>
|
131 | 133 | <string>constant.character.escape.powershell</string>
|
132 | 134 | </dict>
|
133 | 135 | </array>
|
134 | 136 | </dict>
|
135 | 137 | <dict>
|
136 | 138 | <key>begin</key>
|
137 |
| - <string>\@"\s*$</string> |
| 139 | + <string>\@["\x{201C}-\x{201E}]\s*$</string> |
138 | 140 | <key>end</key>
|
139 |
| - <string>^"@</string> |
| 141 | + <string>^["\x{201C}-\x{201E}]@</string> |
140 | 142 | <key>name</key>
|
141 | 143 | <string>string.quoted.double.heredoc.powershell</string>
|
142 | 144 | <key>patterns</key>
|
|
157 | 159 | </dict>
|
158 | 160 | <dict>
|
159 | 161 | <key>begin</key>
|
160 |
| - <string>\@'\s*$</string> |
| 162 | + <string>\@['\x{2018}-\x{201B}]\s*$</string> |
161 | 163 | <key>end</key>
|
162 |
| - <string>^'@</string> |
| 164 | + <string>^['\x{2018}-\x{201B}]@</string> |
163 | 165 | <key>name</key>
|
164 | 166 | <string>string.quoted.single.heredoc.powershell</string>
|
165 | 167 | </dict>
|
|
584 | 586 | <array>
|
585 | 587 | <dict>
|
586 | 588 | <key>match</key>
|
587 |
| - <string>`[`0abefnrtv"'$]</string> |
| 589 | + <string>`[`0abefnrtv'"\x{2018}-\x{201E}$]</string> |
588 | 590 | <key>name</key>
|
589 | 591 | <string>constant.character.escape.powershell</string>
|
590 | 592 | </dict>
|
|
1501 | 1503 | <key>doubleQuotedString</key>
|
1502 | 1504 | <dict>
|
1503 | 1505 | <key>begin</key>
|
1504 |
| - <string>(?<!(?<!`)")"</string> |
| 1506 | + <string>["\x{201C}-\x{201E}]</string> |
1505 | 1507 | <key>beginCaptures</key>
|
1506 | 1508 | <dict>
|
1507 | 1509 | <key>0</key>
|
|
1511 | 1513 | </dict>
|
1512 | 1514 | </dict>
|
1513 | 1515 | <key>end</key>
|
1514 |
| - <string>"(?!")</string> |
| 1516 | + <string>["\x{201C}-\x{201E}]</string> |
| 1517 | + <key>applyEndPatternLast</key> |
| 1518 | + <true/> |
1515 | 1519 | <key>endCaptures</key>
|
1516 | 1520 | <dict>
|
1517 | 1521 | <key>0</key>
|
|
1538 | 1542 | </dict>
|
1539 | 1543 | <dict>
|
1540 | 1544 | <key>match</key>
|
1541 |
| - <string>""</string> |
| 1545 | + <string>["\x{201C}-\x{201E}]{2}</string> |
1542 | 1546 | <key>name</key>
|
1543 | 1547 | <string>constant.character.escape.powershell</string>
|
1544 | 1548 | </dict>
|
|
0 commit comments