editors

changeset 50:93a5ae011d20

* fixed number highlighting context
* added code folding of multi-line sequences
author Matt Lewis
date Tue Jan 03 18:29:16 2012 -0500 (2012-01-03)
parents 7d21da078873
children cf90a38e8ebc
files kate/euphoria.xml
line diff
     1.1 --- a/kate/euphoria.xml	Tue Jan 03 19:29:20 2012 -0300
     1.2 +++ b/kate/euphoria.xml	Tue Jan 03 18:29:16 2012 -0500
     1.3 @@ -277,7 +277,7 @@
     1.4  			<keyword attribute="Keyword" String="with_without" context="With Directive" firstNonSpace="true"/>
     1.5  			
     1.6  			<keyword attribute="Keyword" context="#stay" String="keywords"/>
     1.7 -			<keyword attribute="Type" context="#stay" String="types"/>
     1.8 +			<keyword attribute="Type" String="types"/>
     1.9  			<keyword attribute="Keyword" context="Memstruct" String="memstruct_declaration" beginRegion="regMemstruct"/>
    1.10  			
    1.11  			<Float attribute="Float" context="#stay"/>
    1.12 @@ -298,6 +298,10 @@
    1.13  			<keyword attribute="Keyword" String="memtype_declaration" context="Memtype" beginRegion="regMemtype"/>
    1.14  			<RegExpr attribute="Keyword" String="\bsizeof\b" context="Size Of"/>
    1.15  			<AnyChar String="$?" attribute="Keyword"/>
    1.16 +			
    1.17 +			<AnyChar String=",./+=-*!&amp;:|[]&lt;&gt;" attribute="Symbol" context="#stay"/>
    1.18 +			<DetectChar attribute="Symbol" char="{" context="#stay" beginRegion="regSequence"/>
    1.19 +			<DetectChar attribute="Symbol" char="}" context="#stay" endRegion="regSequence"/>
    1.20  		</context>
    1.21  
    1.22  		<context attribute="String" lineEndContext="#stay" name="String">
    1.23 @@ -331,14 +335,14 @@
    1.24  		<context name="Hex" attribute="Hex" lineEndContext="#pop">
    1.25  			<DetectSpaces context="#pop"/>
    1.26  			<AnyChar String="1234567890_abcdefABCDEF" context="#stay"/>
    1.27 -			<RegExpr String="." context="#pop"/>
    1.28 +			<RegExpr String="." context="#pop" lookAhead="true"/>
    1.29  		</context>
    1.30  		<context name="Number" attribute="Number" lineEndContext="#pop">
    1.31  			<DetectSpaces context="#pop"/>
    1.32  			<AnyChar String="1234567890_eE+-" context="#stay"/>
    1.33 -			<RegExpr String="." context="#pop"/>
    1.34 +			<RegExpr String="." context="#pop" lookAhead="true"/>
    1.35  		</context>
    1.36 -		<context name="IfDef" attribute="Normal Text">
    1.37 +		<context name="IfDef" attribute="Normal Text"  lineEndContext="#stay">
    1.38  			<keyword String="ifdef_conditions" attribute="Keyword"/>
    1.39  			<RegExpr String="\bthen\b" attribute="Keyword" context="#pop"/>
    1.40  			<DetectIdentifier attribute="Directive"/>
    1.41 @@ -347,7 +351,7 @@
    1.42  			<RegExpr attribute="Type" String="\sas\s" context="Namespace Declaration"/>
    1.43  			<DetectIdentifier context="#stay" attribute="String"/>
    1.44  		</context>
    1.45 -		<context name="Namespace Declaration" attribute="Directive">
    1.46 +		<context name="Namespace Declaration" attribute="Directive" lineEndContext="#stay">
    1.47  			<DetectIdentifier attribute="Directive" context="#pop"/>
    1.48  		</context>
    1.49  		<context name="With Directive" attribute="Directive" lineEndContext="#pop">
    1.50 @@ -378,14 +382,15 @@
    1.51  			<DetectChar char="$" attribute="Keyword" context="#pop" endRegion="regMemtype"/>
    1.52  			<RegExpr String="\bas\b" attribute="Keyword" context="Memtype As"/>
    1.53  		</context>
    1.54 -		<context name="Memtype As">
    1.55 +		
    1.56 +		<context name="Memtype As" lineEndContext="#stay">
    1.57  			<DetectIdentifier context="MaybeEndOfList"/>
    1.58  		</context>
    1.59 -		<context name="MaybeEndOfList">
    1.60 +		
    1.61 +		<context name="MaybeEndOfList" lineEndContext="#stay">
    1.62  			<DetectSpaces/>
    1.63  			<!--The list keeps going:-->
    1.64  			<DetectChar char="," context="#pop#pop"/>
    1.65 -			
    1.66  			<!--The list is over:-->
    1.67  			<RegExpr String="." context="#pop#pop#pop" endRegion="#pop"/>
    1.68  		</context>
    1.69 @@ -408,6 +413,7 @@
    1.70  		<itemData name="Comment"         defStyleNum="dsComment" />
    1.71  		<itemData name="Region Marker"   defStyleNum="dsRegionMarker" />
    1.72  		<itemData name="Error"           defStyleNum="dsError" spellChecking="false"/>
    1.73 +		<itemData name="Symbol"          defStyleNum="dsNormal" spellChecking="false"/>
    1.74  	</itemDatas>
    1.75  
    1.76  </highlighting>

SCM Home | OpenEuphoria.org Home