[education/rkward] rkward/syntax: Add the native pipe "|>" as an admissible operator in syntax highlighting.

Pierre de Villemereuil null at kde.org
Mon Jan 2 11:17:07 GMT 2023


Git commit 07daaeb16a79c5aca196e9843cf6d773d5b46961 by Pierre de Villemereuil.
Committed on 28/12/2022 at 19:25.
Pushed by tfry into branch 'master'.

Add the native pipe "|>" as an admissible operator in syntax highlighting.

M  +1    -1    rkward/syntax/rkward.xml

https://invent.kde.org/education/rkward/commit/07daaeb16a79c5aca196e9843cf6d773d5b46961

diff --git a/rkward/syntax/rkward.xml b/rkward/syntax/rkward.xml
index bfd1674e..db902ced 100644
--- a/rkward/syntax/rkward.xml
+++ b/rkward/syntax/rkward.xml
@@ -140,7 +140,7 @@
 			<RegExpr attribute="Assign" context="operator_rhs" String="[<]{1,2}\-"/>
 			<RegExpr attribute="Assign" context="operator_rhs" String="\-[>]{1,2}"/>
 			<RegExpr attribute="Assign" context="operator_rhs" String="=(?!=)"/>
-			<RegExpr attribute="Operator" context="operator_rhs" String="(\+|\-|\*{1,2}|/|<=?|>=?|={1,2}|\!=?|\|{1,2}|&{1,2}|:{1,3}|\^|@|\$|~)"/>
+			<RegExpr attribute="Operator" context="operator_rhs" String="(\+|\-|\*{1,2}|/|<=?|>=?|={1,2}|\!=?|\|[>\|]?|&{1,2}|:{1,3}|\^|@|\$|~)"/>
 			<RegExpr attribute="Operator" context="operator_rhs" String="%[^%]*%"/>
 
 			<!-- Contrary to the normal R Script highlighting, we don't start a region here, but we do go into a command sub-context -->



More information about the rkward-tracker mailing list