Repository :
https://github.com/colorer/Colorer-schemes
On branch : master
Link :
https://github.com/colorer/Colorer-schemes/commit/0932a8a4c29e0dd145857790ec6884eed5097fb2
>---------------------------------------------------------------
commit 0932a8a4c29e0dd145857790ec6884eed5097fb2
Author: Roman Kuzmin <
night...@gmail.com>
Date: Sat Nov 8 14:08:58 2025 +0000
powershell.hrc - add new pipeline operators (#193)
>---------------------------------------------------------------
0932a8a4c29e0dd145857790ec6884eed5097fb2
base/hrc/scripts/powershell.hrc | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/base/hrc/scripts/powershell.hrc b/base/hrc/scripts/powershell.hrc
index 0f855ab..f828343 100644
--- a/base/hrc/scripts/powershell.hrc
+++ b/base/hrc/scripts/powershell.hrc
@@ -7,7 +7,7 @@ xsi:schemaLocation="
http://colorer.sf.net/2003/hrc http://colorer.sf.net/2003/hr
<type name="powershell">
<annotation><documentation><![CDATA[
-powershell.hrc by Roman Kuzmin, aka nightroman, 2025-10-26
+powershell.hrc by Roman Kuzmin, aka nightroman, 2025-10-27
visual.hrd is recommended as optimized for powershell.hrc
Regex syntax in strings after regex operators, [regex], and <#regex#>
@@ -65,7 +65,7 @@ SQL syntax in here-strings after <#sql#>
<entity name="token" value="[^\s$'"\()\{},|;&]"/>
<entity name="e-function" value="(?:\s*(?:[\(\{]|$)|\s+<?#)?="/>
-<entity name="end" value="(?:`?~1$|[|});]?=)"/>
+<entity name="end" value="(?:`?~1$|[|});&]?=)"/>
<entity name="sname" value="\D?=\w+"/>
<entity name="s-rem" value="(?:^|[\s,;=\()\{}\[\]'"]?#1)"/>
<entity name="vname" value="\w[\w\?]*"/>
@@ -902,11 +902,12 @@ SQL syntax in here-strings after <#sql#>
start="/(?{Operator},)/" end="/\S?=/"/>
</scheme>
+<entity name="op-invoke" value="(?:\.|&(&)?!)"/>
<scheme name="invoke">
<block scheme="command-name" region="Command" inner-region="yes"
- start="/~(?{Operator}[.&])\s*%token;?=/" end="/%token;?!|$/"/>
+ start="/~(?{Operator}%op-invoke;)\s*%token;?=/" end="/%token;?!|$/"/>
- <regexp match="/~(?{Operator}[.&])/"/>
+ <regexp match="/~(?{Operator}%op-invoke;)/"/>
<inherit scheme="command-element"/>
</scheme>
@@ -920,7 +921,7 @@ SQL syntax in here-strings after <#sql#>
<scheme name="pipeline-block">
<block scheme="command"
- start="/(?{start}(?{Pipeline}\|))/" end="/(?{end})%end;/"/>
+ start="/(?{start}(?{Pipeline}\|\|?|&&))/" end="/(?{end})%end;/"/>
</scheme>
<scheme name="command">