diff --git a/PowerShellSyntax.tmLanguage b/PowerShellSyntax.tmLanguage index 53b1097..68b196d 100644 --- a/PowerShellSyntax.tmLanguage +++ b/PowerShellSyntax.tmLanguage @@ -234,12 +234,6 @@ - - match - (?<!\w)-([ci]?[lg][te]|eq|ne) - name - keyword.operator.logical.powershell - match (\b(([A-Za-z0-9\-_\.]+)\.(?i:exe|com|cmd|bat))\b) diff --git a/spec/testfiles/syntax_test_TheBigTestFile.ps1 b/spec/testfiles/syntax_test_TheBigTestFile.ps1 index e89b404..6453a10 100644 --- a/spec/testfiles/syntax_test_TheBigTestFile.ps1 +++ b/spec/testfiles/syntax_test_TheBigTestFile.ps1 @@ -962,7 +962,7 @@ if (10 -cgt 100) { } # <- keyword.control.powershell # ^ punctuation.section.group.begin.powershell # ^^ ^^^ constant.numeric.integer.powershell -# ^^^^ keyword.operator.logical.powershell +# ^^^^ keyword.operator.comparison.powershell # ^ punctuation.section.group.end.powershell # ^ punctuation.section.braces.begin.powershell # ^ punctuation.section.braces.end.powershell @@ -1029,21 +1029,21 @@ $a -iLike $b $b -cLike $c # ^ keyword.operator.comparison.powershell "hey" -cgt "Hey" -# ^ keyword.operator.logical.powershell +# ^ keyword.operator.comparison.powershell "Hey" -igt "hey" -# ^ keyword.operator.logical.powershell +# ^ keyword.operator.comparison.powershell "hey" -cge "Hey" -# ^ keyword.operator.logical.powershell +# ^ keyword.operator.comparison.powershell "Hey" -ige "hey" -# ^ keyword.operator.logical.powershell +# ^ keyword.operator.comparison.powershell "HEY" -clt "hey" -# ^ keyword.operator.logical.powershell +# ^ keyword.operator.comparison.powershell "HEY" -ilt "hey" -# ^ keyword.operator.logical.powershell +# ^ keyword.operator.comparison.powershell "HEY" -cle "hey" -# ^ keyword.operator.logical.powershell +# ^ keyword.operator.comparison.powershell "HEY" -ile "hey" -# ^ keyword.operator.logical.powershell +# ^ keyword.operator.comparison.powershell # format "{0:N2}" -f $a