From 219fc65753d9cc79097144840f4d72452f66ec0a Mon Sep 17 00:00:00 2001 From: omniomi Date: Mon, 21 May 2018 13:50:02 -0600 Subject: [PATCH 1/2] remove duplicate matches for comparison --- PowerShellSyntax.tmLanguage | 6 ------ 1 file changed, 6 deletions(-) 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) From 85012d0740ebfa054cfedfab56f3e0e847fc3aa3 Mon Sep 17 00:00:00 2001 From: omniomi Date: Mon, 21 May 2018 14:48:49 -0600 Subject: [PATCH 2/2] update tests --- spec/testfiles/syntax_test_TheBigTestFile.ps1 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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