diff options
author | Darrell Anderson <[email protected]> | 2014-03-03 23:13:48 -0600 |
---|---|---|
committer | Darrell Anderson <[email protected]> | 2014-03-03 23:13:48 -0600 |
commit | a878d3ef3f87b6d971190423b7c70b1919c97a67 (patch) | |
tree | 2d0faac89759ef40a3eab0142cc761ef3341a0b9 /kate/data/crk.xml | |
parent | 333a2116d63ab837db093dbb141bf7cb987686a1 (diff) | |
parent | 316893d4498bedc490a8e21a54a73d9f5ca58424 (diff) | |
download | tdelibs-a878d3ef3f87b6d971190423b7c70b1919c97a67.tar.gz tdelibs-a878d3ef3f87b6d971190423b7c70b1919c97a67.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdelibs
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> |