[rkward-cvs] SF.net SVN: rkward: [1917] trunk/rkward/rkward/syntax/rkward.xml

tfry at users.sourceforge.net tfry at users.sourceforge.net
Mon May 21 12:32:52 UTC 2007


Revision: 1917
          http://svn.sourceforge.net/rkward/?rev=1917&view=rev
Author:   tfry
Date:     2007-05-21 05:32:52 -0700 (Mon, 21 May 2007)

Log Message:
-----------
Make output highlighting *slightly* faster

Modified Paths:
--------------
    trunk/rkward/rkward/syntax/rkward.xml

Modified: trunk/rkward/rkward/syntax/rkward.xml
===================================================================
--- trunk/rkward/rkward/syntax/rkward.xml	2007-05-21 12:29:34 UTC (rev 1916)
+++ trunk/rkward/rkward/syntax/rkward.xml	2007-05-21 12:32:52 UTC (rev 1917)
@@ -35,13 +35,13 @@
 	<contexts>
 		<!-- This context dispatches to the two main contexts output or command. -->
 		<context attribute="Prompt" lineEndContext="#stay" name="ctxbase">
-			<RegExpr attribute="Prompt" context="command0" String="^> " beginRegion="commandRegion"/>
+			<Detect2Chars attribute="Prompt" context="command0" char=">" char1=" " column="0" beginRegion="commandRegion"/>
 			<RegExpr attribute="Normal Text" context="output" String="^([^>\+]|$)" lookAhead="true"/>
 		</context>
 
 		<!-- The output context does no highlighting. If a "> " is encountered at line start, pop back to ctxbase (and to command0 from there) --> 
 		<context attribute="Output" lineEndContext="#stay" name="output">
-			<RegExpr attribute="Prompt" context="#pop" String="^> " lookAhead="true" endRegion="commandRegion"/>
+			<Detect2Chars attribute="Prompt" context="#pop" char=">" char1=" " column="0" lookAhead="true" endRegion="commandRegion"/>
 		</context>
 
 		<!-- The base level context in command mode. Does not allow closing '}' -->


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list