Skip to content

Commit cba79c8

Browse files
committed
Move the ternary operator to its rightful place
1 parent 3a8aae8 commit cba79c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PowerShell.sublime-syntax

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,6 @@ contexts:
158158
scope: keyword.control.conditional.switch.powershell
159159
- match: \b(?i:default){{kebab_break}}
160160
scope: keyword.control.conditional.default.powershell
161-
- match: \?
162-
scope: keyword.control.conditional.select.powershell
163161
- match: \b(?i:where(?!-object)){{kebab_break}}
164162
scope: keyword.control.conditional.select.powershell
165163

@@ -678,6 +676,8 @@ contexts:
678676
scope: keyword.operator.logical.pipe.powershell
679677
- match: \?\?
680678
scope: keyword.operator.null-coalescing.powershell
679+
- match: '[?:]'
680+
scope: keyword.operator.ternary.powershell
681681
- match: ;
682682
scope: punctuation.terminator.statement.powershell
683683
- match: \`(?=\n|$)

0 commit comments

Comments
 (0)