[colorer/Colorer-schemes] master: powershell.hrc - add new pipeline operators (#193) (0932a8a)

1 view
Skip to first unread message

farg...@farmanager.com

unread,
Nov 8, 2025, 9:16:01 AM (8 days ago) Nov 8
to farco...@googlegroups.com
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$'&#34;\()\{},|;&amp;]"/>
<entity name="e-function" value="(?:\s*(?:[\(\{]|$)|\s+&lt;?#)?="/>
-<entity name="end" value="(?:`?~1$|[|});]?=)"/>
+<entity name="end" value="(?:`?~1$|[|});&amp;]?=)"/>
<entity name="sname" value="\D?=\w+"/>
<entity name="s-rem" value="(?:^|[\s,;=\()\{}\[\]'&#34;]?#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="(?:\.|&amp;(&amp;)?!)"/>
<scheme name="invoke">
<block scheme="command-name" region="Command" inner-region="yes"
- start="/~(?{Operator}[.&amp;])\s*%token;?=/" end="/%token;?!|$/"/>
+ start="/~(?{Operator}%op-invoke;)\s*%token;?=/" end="/%token;?!|$/"/>

- <regexp match="/~(?{Operator}[.&amp;])/"/>
+ <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}\|\|?|&amp;&amp;))/" end="/(?{end})%end;/"/>
</scheme>

<scheme name="command">


Reply all
Reply to author
Forward
0 new messages