| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language> |
| 3 |
<language name="ferite" version="7" kateversion="5.0" section="Scripts" extensions="*.fe;*.feh" mimetype="text/x-ferite-src"> |
| 4 |
<highlighting> |
| 5 |
<list name="keywords"> |
| 6 |
<item>break</item> |
| 7 |
<item>case</item> |
| 8 |
<item>continue</item> |
| 9 |
<item>else</item> |
| 10 |
<item>for</item> |
| 11 |
<item>if</item> |
| 12 |
<item>do</item> |
| 13 |
<item>function</item> |
| 14 |
<item>namespace</item> |
| 15 |
<item>while</item> |
| 16 |
<item>class</item> |
| 17 |
<item>new</item> |
| 18 |
<item>uses</item> |
| 19 |
<item>global</item> |
| 20 |
<item>return</item> |
| 21 |
<item>self</item> |
| 22 |
<item>super</item> |
| 23 |
<item>null</item> |
| 24 |
<item>iferr</item> |
| 25 |
<item>fix</item> |
| 26 |
</list> |
| 27 |
<list name="types"> |
| 28 |
<item>number</item> |
| 29 |
<item>void</item> |
| 30 |
<item>string</item> |
| 31 |
<item>array</item> |
| 32 |
<item>object</item> |
| 33 |
<item>final</item> |
| 34 |
<item>static</item> |
| 35 |
</list> |
| 36 |
<contexts> |
| 37 |
<context attribute="Normal Text" lineEndContext="#stay" name="Default" > |
| 38 |
<keyword attribute="Keyword" context="#stay" String="keywords"/> |
| 39 |
<keyword attribute="Data Type" context="#stay" String="types"/> |
| 40 |
<Float attribute="Float" context="Float Suffixes"/> |
| 41 |
<HlCOct attribute="Octal" context="#stay" /> |
| 42 |
<HlCHex attribute="Hex" context="#stay" /> |
| 43 |
<Int attribute="Decimal" context="Int Suffixes"/> |
| 44 |
<HlCChar attribute="Char" context="#stay"/> |
| 45 |
<DetectChar attribute="String" context="String" char="""/> |
| 46 |
<Detect2Chars attribute="Comment" context="Comment" char="/" char1="/"/> |
| 47 |
<Detect2Chars attribute="Comment" context="Multiline Comment" char="/" char1="*" beginRegion="BlockComment"/> |
| 48 |
<AnyChar attribute="Symbol" context="#stay" String="!%&()+,-<=>?[]^{|}~"/> |
| 49 |
<StringDetect attribute="Comment" context="Undeffed" String="#if 0" insensitive="false"/> |
| 50 |
<DetectChar attribute="Preprocessor" context="Preprocessor" char="#" column="0"/> |
| 51 |
</context> |
| 52 |
<context name="Float Suffixes" attribute="Float" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> |
| 53 |
<AnyChar String="fF" attribute="Float" context="#pop"/> |
| 54 |
</context> |
| 55 |
<context name="Int Suffixes" attribute="Decimal" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> |
| 56 |
<StringDetect attribute="Decimal" context="#pop" String="ULL" insensitive="true"/> |
| 57 |
<StringDetect attribute="Decimal" context="#pop" String="LLU" insensitive="true"/> |
| 58 |
<StringDetect attribute="Decimal" context="#pop" String="UL" insensitive="true"/> |
| 59 |
<StringDetect attribute="Decimal" context="#pop" String="LU" insensitive="true"/> |
| 60 |
<StringDetect attribute="Decimal" context="#pop" String="LL" insensitive="true"/> |
| 61 |
<AnyChar attribute="Decimal" context="#pop" String="ULul"/> |
| 62 |
</context> |
| 63 |
<context attribute="String" lineEndContext="#pop" name="String"> |
| 64 |
<LineContinue attribute="String" context="#stay"/> |
| 65 |
<HlCStringChar attribute="String Char" context="#stay"/> |
| 66 |
<DetectChar attribute="String" context="#pop" char="""/> |
| 67 |
</context> |
| 68 |
<context attribute="Comment" lineEndContext="#pop" name="Comment"> |
| 69 |
<DetectSpaces /> |
| 70 |
<IncludeRules context="##Comments"/> |
| 71 |
</context> |
| 72 |
<context attribute="Comment" lineEndContext="#stay" name="Multiline Comment"> |
| 73 |
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="BlockComment"/> |
| 74 |
<DetectSpaces /> |
| 75 |
<IncludeRules context="##Comments"/> |
| 76 |
</context> |
| 77 |
<context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor"> |
| 78 |
<LineContinue attribute="Preprocessor" context="#stay"/> |
| 79 |
<RangeDetect attribute="Prep. Lib" context="#stay" char=""" char1="""/> |
| 80 |
<RangeDetect attribute="Prep. Lib" context="#stay" char="<" char1=">"/> |
| 81 |
<Detect2Chars attribute="Comment" context="Comment" char="/" char1="/"/> |
| 82 |
<Detect2Chars attribute="Comment" context="Multiline Comment 2" char="/" char1="*" beginRegion="BlockComment"/> |
| 83 |
</context> |
| 84 |
<context attribute="Comment" lineEndContext="#stay" name="Multiline Comment 2"> |
| 85 |
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="BlockComment"/> |
| 86 |
<DetectSpaces /> |
| 87 |
<IncludeRules context="##Comments"/> |
| 88 |
</context> |
| 89 |
<context attribute="Comment" lineEndContext="#stay" name="Undeffed"> |
| 90 |
<StringDetect attribute="Comment" context="#pop" String="#endif" column="0"/> |
| 91 |
<DetectSpaces /> |
| 92 |
<IncludeRules context="##Comments"/> |
| 93 |
</context> |
| 94 |
</contexts> |
| 95 |
<itemDatas> |
| 96 |
<itemData name="Normal Text" defStyleNum="dsNormal"/> |
| 97 |
<itemData name="Keyword" defStyleNum="dsKeyword"/> |
| 98 |
<itemData name="Data Type" defStyleNum="dsDataType"/> |
| 99 |
<itemData name="Decimal" defStyleNum="dsDecVal"/> |
| 100 |
<itemData name="Octal" defStyleNum="dsBaseN"/> |
| 101 |
<itemData name="Hex" defStyleNum="dsBaseN"/> |
| 102 |
<itemData name="Float" defStyleNum="dsFloat"/> |
| 103 |
<itemData name="Char" defStyleNum="dsChar"/> |
| 104 |
<itemData name="String" defStyleNum="dsString"/> |
| 105 |
<itemData name="String Char" defStyleNum="dsSpecialChar"/> |
| 106 |
<itemData name="Comment" defStyleNum="dsComment"/> |
| 107 |
<itemData name="Symbol" defStyleNum="dsOperator"/> |
| 108 |
<itemData name="Preprocessor" defStyleNum="dsPreprocessor"/> |
| 109 |
<itemData name="Prep. Lib" defStyleNum="dsImport"/> |
| 110 |
</itemDatas> |
| 111 |
</highlighting> |
| 112 |
<general> |
| 113 |
<comments> |
| 114 |
<comment name="singleLine" start="//" /> |
| 115 |
<comment name="multiLine" start="/*" end="*/" region="BlockComment" /> |
| 116 |
</comments> |
| 117 |
<keywords casesensitive="1" /> |
| 118 |
</general> |
| 119 |
</language> |
| 120 |
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; --> |