You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
118 lines
5.7 KiB
118 lines
5.7 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE language SYSTEM "language.dtd">
|
|
<language name="ferite" version="1.04" kateversion="2.4" section="Scripts" extensions="*.fe;*.feh" mimetype="text/x-ferite-src">
|
|
<highlighting>
|
|
<list name="keywords">
|
|
<item> break </item>
|
|
<item> case </item>
|
|
<item> continue </item>
|
|
<item> else </item>
|
|
<item> for </item>
|
|
<item> if </item>
|
|
<item> do </item>
|
|
<item> function </item>
|
|
<item> namespace </item>
|
|
<item> while </item>
|
|
<item> class </item>
|
|
<item> new </item>
|
|
<item> uses </item>
|
|
<item> global </item>
|
|
<item> return </item>
|
|
<item> self </item>
|
|
<item> super </item>
|
|
<item> null </item>
|
|
<item> iferr </item>
|
|
<item> fix </item>
|
|
</list>
|
|
<list name="types">
|
|
<item> number </item>
|
|
<item> void </item>
|
|
<item> string </item>
|
|
<item> array </item>
|
|
<item> object </item>
|
|
<item> final </item>
|
|
<item> static </item>
|
|
</list>
|
|
<contexts>
|
|
<context attribute="Normal Text" lineEndContext="#stay" name="Default" >
|
|
<keyword attribute="Keyword" context="#stay" String="keywords"/>
|
|
<keyword attribute="Data Type" context="#stay" String="types"/>
|
|
<Float attribute="Float" context="#stay">
|
|
<AnyChar String="fF" attribute="Float" context="#stay"/>
|
|
</Float>
|
|
<HlCOct attribute="Octal" context="#stay" />
|
|
<HlCHex attribute="Hex" context="#stay" />
|
|
<Int attribute="Decimal" context="#stay" >
|
|
<StringDetect attribute="Decimal" context="#stay" String="ULL" insensitive="true"/>
|
|
<StringDetect attribute="Decimal" context="#stay" String="LUL" insensitive="true"/>
|
|
<StringDetect attribute="Decimal" context="#stay" String="LLU" insensitive="true"/>
|
|
<StringDetect attribute="Decimal" context="#stay" String="UL" insensitive="true"/>
|
|
<StringDetect attribute="Decimal" context="#stay" String="LU" insensitive="true"/>
|
|
<StringDetect attribute="Decimal" context="#stay" String="LL" insensitive="true"/>
|
|
<StringDetect attribute="Decimal" context="#stay" String="U" insensitive="true"/>
|
|
<StringDetect attribute="Decimal" context="#stay" String="L" insensitive="true"/>
|
|
</Int>
|
|
<HlCChar attribute="Char" context="#stay"/>
|
|
<DetectChar attribute="String" context="String" char="""/>
|
|
<Detect2Chars attribute="Comment" context="Comment" char="/" char1="/"/>
|
|
<Detect2Chars attribute="Comment" context="Multiline Comment" char="/" char1="*"/>
|
|
<AnyChar attribute="Symbol" context="#stay" String="!%&()+,-<=>?[]^{|}~"/>
|
|
<StringDetect attribute="Comment" context="Undeffed" String="#if 0" insensitive="false"/>
|
|
<DetectChar attribute="Preprocessor" context="Preprocessor" char="#" column="0"/>
|
|
</context>
|
|
<context attribute="String" lineEndContext="#pop" name="String">
|
|
<LineContinue attribute="String" context="#stay"/>
|
|
<HlCStringChar attribute="String Char" context="#stay"/>
|
|
<DetectChar attribute="String" context="#pop" char="""/>
|
|
</context>
|
|
<context attribute="Comment" lineEndContext="#pop" name="Comment">
|
|
<RegExpr attribute="Alert" context="#stay" String="(FIXME|TODO)" />
|
|
</context>
|
|
<context attribute="Comment" lineEndContext="#stay" name="Multiline Comment">
|
|
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/"/>
|
|
<RegExpr attribute="Alert" context="#stay" String="(FIXME|TODO)" />
|
|
</context>
|
|
<context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor">
|
|
<LineContinue attribute="Preprocessor" context="#stay"/>
|
|
<RangeDetect attribute="Prep. Lib" context="#stay" char=""" char1="""/>
|
|
<RangeDetect attribute="Prep. Lib" context="#stay" char="<" char1=">"/>
|
|
<Detect2Chars attribute="Comment" context="Comment" char="/" char1="/"/>
|
|
<Detect2Chars attribute="Comment" context="Multiline Comment 2" char="/" char1="*"/>
|
|
</context>
|
|
<context attribute="Comment" lineEndContext="#stay" name="Multiline Comment 2">
|
|
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" />
|
|
</context>
|
|
<context attribute="Normal Text" lineEndContext="#pop" name="unknown" />
|
|
<context attribute="Normal Text" lineEndContext="#pop" name ="unknown 2" />
|
|
<context attribute="Comment" lineEndContext="#stay" name="Undeffed">
|
|
<RegExpr attribute="Alert" context="#stay" String="(FIXME|TODO)" />
|
|
<StringDetect attribute="Comment" context="#pop" String="#endif" column="0"/>
|
|
</context>
|
|
</contexts>
|
|
<itemDatas>
|
|
<itemData name="Normal Text" defStyleNum="dsNormal"/>
|
|
<itemData name="Keyword" defStyleNum="dsKeyword"/>
|
|
<itemData name="Data Type" defStyleNum="dsDataType"/>
|
|
<itemData name="Decimal" defStyleNum="dsDecVal"/>
|
|
<itemData name="Octal" defStyleNum="dsBaseN"/>
|
|
<itemData name="Hex" defStyleNum="dsBaseN"/>
|
|
<itemData name="Float" defStyleNum="dsFloat"/>
|
|
<itemData name="Char" defStyleNum="dsChar"/>
|
|
<itemData name="String" defStyleNum="dsString"/>
|
|
<itemData name="String Char" defStyleNum="dsChar"/>
|
|
<itemData name="Comment" defStyleNum="dsComment"/>
|
|
<itemData name="Symbol" defStyleNum="dsNormal"/>
|
|
<itemData name="Preprocessor" defStyleNum="dsOthers"/>
|
|
<itemData name="Prep. Lib" defStyleNum="dsOthers"/>
|
|
<itemData name="Alert" defStyleNum="dsAlert" />
|
|
</itemDatas>
|
|
</highlighting>
|
|
<general>
|
|
<comments>
|
|
<comment name="singleLine" start="//" />
|
|
<comment name="multiLine" start="/*" end="*/" />
|
|
</comments>
|
|
<keywords casesensitive="1" />
|
|
</general>
|
|
</language>
|