diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-03-03 00:41:25 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-03-03 00:41:25 +0900 |
commit | bb647dca1516a45ce18f2e040bd20528f588e2fe (patch) | |
tree | 0fe5d9a19e884335a14fdf9741f772b2474df43e /kate/data/crk.xml | |
parent | a7e4c6b5e7916d924c2a9b75a10e427b556b8d65 (diff) | |
download | tdelibs-bb647dca1516a45ce18f2e040bd20528f588e2fe.tar.gz tdelibs-bb647dca1516a45ce18f2e040bd20528f588e2fe.zip |
Kate syntax highlighting files update - Feb 2014
Diffstat (limited to 'kate/data/crk.xml')
-rw-r--r-- | kate/data/crk.xml | 16 |
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=":!%&()+,-/.*<=>?[]|~^;"/> <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> |