[education/rkward/mr-origin-23] rkward/syntax: Fixed an issue in Float handling

Thomas Friedrichsmeier null at kde.org
Wed Oct 18 17:24:53 BST 2023


Git commit 40114f64b049bf491db8e667cafcbc722f5d4d3d by Thomas Friedrichsmeier, on behalf of Pierre de Villemereuil.
Committed on 18/10/2023 at 18:23.
Pushed by tfry into branch 'mr-origin-23'.

Fixed an issue in Float handling

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

https://invent.kde.org/education/rkward/-/commit/40114f64b049bf491db8e667cafcbc722f5d4d3d

diff --git a/rkward/syntax/rkward.xml b/rkward/syntax/rkward.xml
index a513f5d06..ecc929a39 100644
--- a/rkward/syntax/rkward.xml
+++ b/rkward/syntax/rkward.xml
@@ -113,7 +113,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
 			<RegExpr attribute="Output Index" context="#stay" String="([ ]{0,2}|[ ]*\[)[0-9]+,?[0-9]*\]?\:?(?![.0-9]|.*[:,.;]$)" column="0"/>
 			<RegExpr attribute="Output Index" context="#stay" String="([ ]+\[,[1-9]+[0-9]*\])+$" column="0"/>
 			<!-- Floats are hard to catch in R Output -->
-			<RegExpr attribute="Output Float" context="#stay" String="(?<=<|>|\(|\[| |^)-?([1-9][0-9]*|0)(\.[0-9]*)?i?(e[-+]?[ ]{0,3}[0-9]+)?(?![0-9a-zA-Z/_\~\-\]]|[.,;:][^ \t])"/>
+			<RegExpr attribute="Output Float" context="#stay" String="(?<=<|>|\(|\[| |^)-?([1-9][0-9]*|0)(\.[0-9]*)?i?(e[-+]?[ ]{0,3}[0-9]+)?(?![0-9a-zA-Z/_\~\-\]+]|[.,;:][^ \t])"/>
 			<WordDetect attribute="Output NA" context="#stay" String="NA"/>
 			<WordDetect attribute="Output True" context="#stay" String="TRUE"/>
 			<WordDetect attribute="Output False" context="#stay" String="FALSE"/>



More information about the rkward-tracker mailing list