File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 328
328
</dict >
329
329
<dict >
330
330
<key >match </key >
331
- <string >(?< !\w)-(?i:[ic]?(?:eq|ne|[gl][te]|(?:not)?(?:like|match|contains|in)|replace))(?!\p{L}) </string >
331
+ <string >(?< !\w)-(?i:[ic]?(?:eq|ne|[gl][te]|(?:not)?(?:like|match|contains|in)|any|all| replace))(?!\p{L}) </string >
332
332
<key >name </key >
333
333
<string >keyword.operator.comparison.powershell </string >
334
334
</dict >
Original file line number Diff line number Diff line change @@ -392,6 +392,8 @@ $b -contains $c
392
392
$x -notcontains $c
393
393
$c -in $b
394
394
$c -notin $x
395
+ $c - any { $true }
396
+ $c - all { $true }
395
397
$a -match $b
396
398
$a -notmatch $b
397
399
$x -like $c
Original file line number Diff line number Diff line change @@ -1010,6 +1010,10 @@ $c -in $b
1010
1010
# ^ keyword.operator.comparison.powershell
1011
1011
$c -notin $x
1012
1012
# ^ keyword.operator.comparison.powershell
1013
+ $c - any { $true }
1014
+ # ^ keyword.operator.comparison.powershell
1015
+ $c - all { $true }
1016
+ # ^ keyword.operator.comparison.powershell
1013
1017
$a -match $b
1014
1018
# ^ keyword.operator.comparison.powershell
1015
1019
$a -notmatch $b
You can’t perform that action at this time.
0 commit comments