editors

changeset 51:cf90a38e8ebc

* fix kate include highlighting to work with "public include"
* change the "as" in include file as ns to highlight as keyword
author Matt Lewis
date Tue Jan 03 19:58:27 2012 -0500 (2012-01-03)
parents 93a5ae011d20
children 6df4cdf10d75
files kate/euphoria.xml
line diff
     1.1 --- a/kate/euphoria.xml	Tue Jan 03 18:29:16 2012 -0500
     1.2 +++ b/kate/euphoria.xml	Tue Jan 03 19:58:27 2012 -0500
     1.3 @@ -225,6 +225,11 @@
     1.4  		<item> or </item>
     1.5  		<item> not </item>
     1.6  	</list>
     1.7 +	
     1.8 +	<list name="include_directive">
     1.9 +		<item> include </item>
    1.10 +	</list>
    1.11 +	
    1.12  	<contexts>
    1.13  			
    1.14  		<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
    1.15 @@ -293,7 +298,7 @@
    1.16  			<Detect2Chars attribute="Comment" context="Comment" char="-" char1="-"/>
    1.17  			<Detect2Chars attribute="Comment" context="Comment Multi" char="/" char1="*" beginRegion="Comment"/>
    1.18  			
    1.19 -			<WordDetect attribute="Type" String="include" context="Include Line" firstNonSpace="true"/>
    1.20 +			<keyword attribute="Type" String="include_directive" context="Include Line"/>
    1.21  			<WordDetect attribute="Keyword" String="namespace" context="Namespace Declaration"/>
    1.22  			<keyword attribute="Keyword" String="memtype_declaration" context="Memtype" beginRegion="regMemtype"/>
    1.23  			<RegExpr attribute="Keyword" String="\bsizeof\b" context="Size Of"/>
    1.24 @@ -348,7 +353,7 @@
    1.25  			<DetectIdentifier attribute="Directive"/>
    1.26  		</context>
    1.27  		<context name="Include Line" lineEndContext="#pop" attribute="Normal Text">
    1.28 -			<RegExpr attribute="Type" String="\sas\s" context="Namespace Declaration"/>
    1.29 +			<RegExpr attribute="Keyword" String="\sas\s" context="Namespace Declaration"/>
    1.30  			<DetectIdentifier context="#stay" attribute="String"/>
    1.31  		</context>
    1.32  		<context name="Namespace Declaration" attribute="Directive" lineEndContext="#stay">

SCM Home | OpenEuphoria.org Home