Skip to content

Commit 7cd5381

Browse files
committed
support (pre) unary [ic]split/join operators
1 parent 7d25540 commit 7cd5381

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

PowerShellSyntax.tmLanguage

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6674,8 +6674,27 @@
66746674
</array>
66756675
</dict>
66766676
<dict>
6677-
<key>reserve</key>
6678-
<string>#numericConstant</string>
6677+
<key>begin</key>
6678+
<string>[\x{2013}-\x{2015}-]((?i:join|[ic]?(?:split)))(?!\p{L})</string>
6679+
<key>beginCaptures</key>
6680+
<dict>
6681+
<key>0</key>
6682+
<dict>
6683+
<key>name</key>
6684+
<string>keyword.operator.unary.string-$1.powershell</string>
6685+
</dict>
6686+
</dict>
6687+
<key>end</key>
6688+
<string>(?=.|$)</string>
6689+
<key>applyEndPatternLast</key>
6690+
<true/>
6691+
<key>patterns</key>
6692+
<array>
6693+
<dict>
6694+
<key>include</key>
6695+
<string>#advanceToToken</string>
6696+
</dict>
6697+
</array>
66796698
</dict>
66806699
<dict>
66816700
<key>begin</key>

0 commit comments

Comments
 (0)