|
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>\@"(?=$)</string> |
| 139 | + <string>(@["\x{201C}-\x{201E}])\s*$</string> |
| 140 | + <key>beginCaptures</key> |
| 141 | + <dict> |
| 142 | + <key>1</key> |
| 143 | + <dict> |
| 144 | + <key>name</key> |
| 145 | + <string>punctuation.definition.string.begin.powershell</string> |
| 146 | + </dict> |
| 147 | + </dict> |
138 | 148 | <key>end</key>
|
139 |
| - <string>^"@</string> |
| 149 | + <string>^["\x{201C}-\x{201E}]@</string> |
| 150 | + <key>endCaptures</key> |
| 151 | + <dict> |
| 152 | + <key>0</key> |
| 153 | + <dict> |
| 154 | + <key>name</key> |
| 155 | + <string>punctuation.definition.string.end.powershell</string> |
| 156 | + </dict> |
| 157 | + </dict> |
140 | 158 | <key>name</key>
|
141 | 159 | <string>string.quoted.double.heredoc.powershell</string>
|
142 | 160 | <key>patterns</key>
|
|
157 | 175 | </dict>
|
158 | 176 | <dict>
|
159 | 177 | <key>begin</key>
|
160 |
| - <string>\@'(?=$)</string> |
| 178 | + <string>(@['\x{2018}-\x{201B}])\s*$</string> |
| 179 | + <key>beginCaptures</key> |
| 180 | + <dict> |
| 181 | + <key>1</key> |
| 182 | + <dict> |
| 183 | + <key>name</key> |
| 184 | + <string>punctuation.definition.string.begin.powershell</string> |
| 185 | + </dict> |
| 186 | + </dict> |
161 | 187 | <key>end</key>
|
162 |
| - <string>^'@</string> |
163 |
| - <key>name</key> |
164 |
| - <string>string.quoted.single.heredoc.powershell</string> |
165 |
| - <key>patterns</key> |
166 |
| - <array> |
| 188 | + <string>^['\x{2018}-\x{201B}]@</string> |
| 189 | + <key>endCaptures</key> |
| 190 | + <dict> |
| 191 | + <key>0</key> |
167 | 192 | <dict>
|
168 |
| - <key>match</key> |
169 |
| - <string>''</string> |
170 | 193 | <key>name</key>
|
171 |
| - <string>constant.character.escape.powershell</string> |
| 194 | + <string>punctuation.definition.string.end.powershell</string> |
172 | 195 | </dict>
|
173 |
| - </array> |
| 196 | + </dict> |
| 197 | + <key>name</key> |
| 198 | + <string>string.quoted.single.heredoc.powershell</string> |
174 | 199 | </dict>
|
175 | 200 | <dict>
|
176 | 201 | <key>include</key>
|
|
593 | 618 | <array>
|
594 | 619 | <dict>
|
595 | 620 | <key>match</key>
|
596 |
| - <string>`[`0abefnrtv"'$]</string> |
| 621 | + <string>`[`0abefnrtv'"\x{2018}-\x{201E}$]</string> |
597 | 622 | <key>name</key>
|
598 | 623 | <string>constant.character.escape.powershell</string>
|
599 | 624 | </dict>
|
600 | 625 | <dict>
|
601 | 626 | <key>include</key>
|
602 | 627 | <string>#unicodeEscape</string>
|
603 | 628 | </dict>
|
604 |
| - <dict> |
605 |
| - <key>match</key> |
606 |
| - <string>""</string> |
607 |
| - <key>name</key> |
608 |
| - <string>constant.character.escape.powershell</string> |
609 |
| - </dict> |
610 | 629 | </array>
|
611 | 630 | </dict>
|
612 | 631 | <key>unicodeEscape</key>
|
|
1516 | 1535 | <key>doubleQuotedString</key>
|
1517 | 1536 | <dict>
|
1518 | 1537 | <key>begin</key>
|
1519 |
| - <string>(?<!(?<!`)")"</string> |
| 1538 | + <string>["\x{201C}-\x{201E}]</string> |
1520 | 1539 | <key>beginCaptures</key>
|
1521 | 1540 | <dict>
|
1522 | 1541 | <key>0</key>
|
|
1526 | 1545 | </dict>
|
1527 | 1546 | </dict>
|
1528 | 1547 | <key>end</key>
|
1529 |
| - <string>"(?!")</string> |
| 1548 | + <string>["\x{201C}-\x{201E}]</string> |
| 1549 | + <key>applyEndPatternLast</key> |
| 1550 | + <true/> |
1530 | 1551 | <key>endCaptures</key>
|
1531 | 1552 | <dict>
|
1532 | 1553 | <key>0</key>
|
|
1551 | 1572 | <key>include</key>
|
1552 | 1573 | <string>#doubleQuotedStringEscapes</string>
|
1553 | 1574 | </dict>
|
| 1575 | + <dict> |
| 1576 | + <key>match</key> |
| 1577 | + <string>["\x{201C}-\x{201E}]{2}</string> |
| 1578 | + <key>name</key> |
| 1579 | + <string>constant.character.escape.powershell</string> |
| 1580 | + </dict> |
1554 | 1581 | <dict>
|
1555 | 1582 | <key>include</key>
|
1556 | 1583 | <string>#interpolation</string>
|
|
0 commit comments