summaryrefslogtreecommitdiffstats
path: root/kate/data/crk.xml
diff options
context:
space:
mode:
Diffstat (limited to 'kate/data/crk.xml')
-rw-r--r--kate/data/crk.xml16
1 files changed, 14 insertions, 2 deletions
diff --git a/kate/data/crk.xml b/kate/data/crk.xml
index ff2db1762..2d83e3f25 100644
--- a/kate/data/crk.xml
+++ b/kate/data/crk.xml
@@ -1,5 +1,5 @@
<!DOCTYPE language SYSTEM "language.dtd">
-<language name="Crack" version="1.2" kateversion="2.5" section="Sources" extensions="*.crk" mimetype="">
+<language name="Crack" version="1.1" kateversion="2.3" section="Sources" extensions="*.crk" mimetype="">
<highlighting>
<list name="keywords">
<item> break</item>
@@ -24,8 +24,10 @@
<list name="types">
<item> bool</item>
<item> byte</item>
+ <item> int16</item>
<item> int32</item>
<item> int64</item>
+ <item> uint16</item>
<item> uint32</item>
<item> uint64</item>
<item> float32</item>
@@ -70,6 +72,7 @@
<AnyChar attribute="Symbol" context="#stay" String=":!%&amp;()+,-/.*&lt;=&gt;?[]|~^&#59;"/>
<RegExpr attribute="Function" context="#stay" String="\b[_\w][_\w\d]*(?=[\s]*[(])" />
<RegExpr attribute="Symbol" context="Member" String="[.]{1,1}" />
+ <RegExpr attribute="Annotation" context="#stay" String="@\w+" />
</context>
<context attribute="String" lineEndContext="#pop" name="String">
@@ -96,7 +99,15 @@
<DetectChar attribute="Char" context="#pop" char="'" />
</context>
+ <context name="Braces" attribute="Normal Text" lineEndContext="#stay">
+ <DetectChar attribute="Normal Text" char=")" context="#pop"/>
+ <!-- Highlight everything inside as code. -->
+ <IncludeRules context="Normal"/>
+ </context>
+
<context name="Subst" attribute="Normal Text" lineEndContext="#stay">
+ <!-- Switch to a new context when encountering an lbrace so that we don't #pop too early. -->
+ <DetectChar attribute="Normal Text" char="(" context="Braces"/>
<DetectChar attribute="Substitution" char=")" context="#pop"/>
<!-- Highlight substitution as code. -->
<IncludeRules context="Normal"/>
@@ -134,7 +145,8 @@
<itemData name="Symbol" defStyleNum="dsNormal"/>
<itemData name="Substitution" defStyleNum="dsOthers"/>
<itemData name="Package" defStyleNum="dsFunction"/>
- <itemData name="Function" defStyleNum="dsFunction"/>
+ <itemData name="Function" defStyleNum="dsFunction"/>
+ <itemData name="Annotation" defStyleNum="dsKeyword"/>
</itemDatas>
</highlighting>
<general>