[rkward] rkward/syntax: changed the hightlighting of := from assignment operator to identifier

m.eik michalke null at kde.org
Wed Aug 29 22:25:01 BST 2018


Git commit 44e880e45895f447fb32e8f632e43e4768892c31 by m.eik michalke.
Committed on 29/08/2018 at 21:23.
Pushed by meikm into branch 'master'.

changed the hightlighting of := from assignment operator to identifier

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

https://commits.kde.org/rkward/44e880e45895f447fb32e8f632e43e4768892c31

diff --git a/rkward/syntax/r.xml b/rkward/syntax/r.xml
index 8e6d0b18..cfc8b29d 100644
--- a/rkward/syntax/r.xml
+++ b/rkward/syntax/r.xml
@@ -56,7 +56,7 @@
 			<LineContinue attribute="Operator" context="#stay"/>
 			<DetectChar attribute="Symbol" context="#pop" char=")"/>
 
-			<RegExpr attribute="Identifier" context="#stay" String="[a-zA-Z_\.][0-9a-zA-Z_\.]*[\s]*=(?=([^=]|$))"/>
+			<RegExpr attribute="Identifier" context="#stay" String="[a-zA-Z_\.][0-9a-zA-Z_\.]*[\s]*[:]?=(?=([^=]|$))"/>
 
 			<IncludeRules context="CommonRules"/>
 			<DetectChar attribute="Error" context="#stay" char="}" />
@@ -112,7 +112,6 @@
 			<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="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="%[^%]*%"/>
 



More information about the rkward-tracker mailing list