diff --git a/PowerShellSyntax.tmLanguage b/PowerShellSyntax.tmLanguage index 60dd69d..2127ab0 100644 --- a/PowerShellSyntax.tmLanguage +++ b/PowerShellSyntax.tmLanguage @@ -328,7 +328,7 @@ match - (?<!\w)-(?i:[ic]?(?:eq|ne|[gl][te]|(?:not)?(?:like|match|contains|in)|replace))(?!\p{L}) + (?<!\w)-(?i:(?:[ic]?(?:eq|ne|[gl][te]|(?:not)?(?:like|match|contains|in)|replace))|any|all)(?!\p{L}) name keyword.operator.comparison.powershell diff --git a/examples/TheBigTestFile.ps1 b/examples/TheBigTestFile.ps1 index 39b0d89..4a47175 100644 --- a/examples/TheBigTestFile.ps1 +++ b/examples/TheBigTestFile.ps1 @@ -392,6 +392,8 @@ $b -contains $c $x -notcontains $c $c -in $b $c -notin $x +$c -any { $true } +$c -all { $true } $a -match $b $a -notmatch $b $x -like $c diff --git a/spec/testfiles/syntax_test_TheBigTestFile.ps1 b/spec/testfiles/syntax_test_TheBigTestFile.ps1 index 89d416a..e3bcf52 100644 --- a/spec/testfiles/syntax_test_TheBigTestFile.ps1 +++ b/spec/testfiles/syntax_test_TheBigTestFile.ps1 @@ -1010,6 +1010,10 @@ $c -in $b # ^ keyword.operator.comparison.powershell $c -notin $x # ^ keyword.operator.comparison.powershell +$c -any { $true } +# ^ keyword.operator.comparison.powershell +$c -all { $true } +# ^ keyword.operator.comparison.powershell $a -match $b # ^ keyword.operator.comparison.powershell $a -notmatch $b