Skip to content

Commit 8ec9066

Browse files
omniomiTylerLeonhardt
authored andcommitted
remove duplicate matches for comparison (#97)
* remove duplicate matches for comparison * update tests
1 parent 40d2d8f commit 8ec9066

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

PowerShellSyntax.tmLanguage

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,6 @@
234234
</dict>
235235
</array>
236236
</dict>
237-
<dict>
238-
<key>match</key>
239-
<string>(?&lt;!\w)-([ci]?[lg][te]|eq|ne)</string>
240-
<key>name</key>
241-
<string>keyword.operator.logical.powershell</string>
242-
</dict>
243237
<dict>
244238
<key>match</key>
245239
<string>(\b(([A-Za-z0-9\-_\.]+)\.(?i:exe|com|cmd|bat))\b)</string>

spec/testfiles/syntax_test_TheBigTestFile.ps1

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ if (10 -cgt 100) { }
962962
# <- keyword.control.powershell
963963
# ^ punctuation.section.group.begin.powershell
964964
# ^^ ^^^ constant.numeric.integer.powershell
965-
# ^^^^ keyword.operator.logical.powershell
965+
# ^^^^ keyword.operator.comparison.powershell
966966
# ^ punctuation.section.group.end.powershell
967967
# ^ punctuation.section.braces.begin.powershell
968968
# ^ punctuation.section.braces.end.powershell
@@ -1029,21 +1029,21 @@ $a -iLike $b
10291029
$b -cLike $c
10301030
# ^ keyword.operator.comparison.powershell
10311031
"hey" -cgt "Hey"
1032-
# ^ keyword.operator.logical.powershell
1032+
# ^ keyword.operator.comparison.powershell
10331033
"Hey" -igt "hey"
1034-
# ^ keyword.operator.logical.powershell
1034+
# ^ keyword.operator.comparison.powershell
10351035
"hey" -cge "Hey"
1036-
# ^ keyword.operator.logical.powershell
1036+
# ^ keyword.operator.comparison.powershell
10371037
"Hey" -ige "hey"
1038-
# ^ keyword.operator.logical.powershell
1038+
# ^ keyword.operator.comparison.powershell
10391039
"HEY" -clt "hey"
1040-
# ^ keyword.operator.logical.powershell
1040+
# ^ keyword.operator.comparison.powershell
10411041
"HEY" -ilt "hey"
1042-
# ^ keyword.operator.logical.powershell
1042+
# ^ keyword.operator.comparison.powershell
10431043
"HEY" -cle "hey"
1044-
# ^ keyword.operator.logical.powershell
1044+
# ^ keyword.operator.comparison.powershell
10451045
"HEY" -ile "hey"
1046-
# ^ keyword.operator.logical.powershell
1046+
# ^ keyword.operator.comparison.powershell
10471047

10481048
# format
10491049
"{0:N2}" -f $a

0 commit comments

Comments
 (0)