Skip to content

Commit a1b5619

Browse files
committed
Call & a "background" operator
1 parent 3c79c99 commit a1b5619

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

PowerShell.sublime-syntax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ contexts:
392392
- match: ','
393393
scope: punctuation.separator.sequence.powershell
394394
- match: '&'
395-
scope: keyword.operator.other.powershell
395+
scope: keyword.operator.background.powershell
396396
- match: \.\.(?=\-?\d|\(|\$)
397397
# This is very imprecise. Is there a syntax for 'must come after...'?
398398
scope: keyword.operator.range.powershell

Tests/syntax_test_PowerShell.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ throw "Do not run this file!"
8383

8484
# Stop parsing
8585
& tool.exe /arg1 'value' /arg2 $value --% /arg3 $value /arg4 "value" # Comment
86-
# <- keyword.operator.other
86+
# <- keyword.operator.background
8787
# ^^^^^^^^ variable.function
8888
# ^ punctuation.definition.parameter
8989
# ^^^^^ variable.parameter.option
@@ -93,7 +93,7 @@ throw "Do not run this file!"
9393
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ string.unquoted - constant - variable - comment
9494

9595
& gnutool.exe -s 'short option' --long-option --very_long_option value +plus-option
96-
#<- keyword.operator.other
96+
#<- keyword.operator.background
9797
# ^^^^^^^^^^^ variable.function
9898
# ^ variable.parameter.option punctuation.definition.parameter
9999
# ^ variable.parameter.option
@@ -803,7 +803,7 @@ ls *.ps1 -recurse
803803
# ^^^^^^^^^^ variable.parameter.option
804804
# ^^^^^^^ string.quoted.single
805805
& tool.exe
806-
# <- keyword.operator.other
806+
# <- keyword.operator.background
807807
# ^^^^^^^^ variable.function
808808
something.cmd
809809
#^^^^^^^^^^^^ variable.function

0 commit comments

Comments
 (0)