Debian Codegraph @

data/syntax/crk.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE language>
3 <language name="Crack" version="10" kateversion="5.0" section="Sources" extensions="*.crk" mimetype="">
4 <highlighting>
5 <list name="keywords">
6 <item>break</item>
7 <item>catch</item>
8 <item>class</item>
9 <item>continue</item>
10 <item>else</item>
11 <item>false</item>
12 <item>for</item>
13 <item>if</item>
14 <item>in</item>
15 <item>is</item>
16 <item>null</item>
17 <item>oper</item>
18 <item>return</item>
19 <item>this</item>
20 <item>true</item>
21 <item>try</item>
22 <item>typeof</item>
23 <item>while</item>
24 </list>
25 <list name="types">
26 <item>bool</item>
27 <item>byte</item>
28 <item>int16</item>
29 <item>int32</item>
30 <item>int64</item>
31 <item>uint16</item>
32 <item>uint32</item>
33 <item>uint64</item>
34 <item>float32</item>
35 <item>float64</item>
36 <item>int</item>
37 <item>uint</item>
38 <item>intz</item>
39 <item>uintz</item>
40 <item>float</item>
41 <item>void</item>
42 </list>
43 <contexts>
44 <context attribute="Normal Text" lineEndContext="#stay" name="Normal">
45 <keyword attribute="Keyword" context="#stay" String="keywords"/>
46 <WordDetect attribute="Keyword" context="Package" String="import" />
47 <keyword attribute="Data Type" context="#stay" String="types" />
48 <Float attribute="Float" context="#stay"/>
49 <HlCOct attribute="Octal" context="#stay"/>
50 <HlCHex attribute="Hex" context="#stay"/>
51 <Int attribute="Decimal" context="#stay"/>
52 <DetectChar attribute="String" context="Single quoted String" char="'"/>
53 <DetectChar attribute="String" context="String" char="&quot;"/>
54 <DetectChar attribute="String" context="Backtick String" char="`"/>
55 <Detect2Chars attribute="Char" context="Char" char="b" char1="'" />
56 <DetectChar attribute="Comment" context="Commentar 1" char="#" />
57 <Detect2Chars attribute="Comment" context="MatchComment" char="/" char1="/" lookAhead="true"/>
58 <Detect2Chars attribute="Comment" context="MatchComment" char="/" char1="*" lookAhead="true" />
59 <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="block1"/>
60 <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="block1"/>
61 <AnyChar attribute="Symbol" context="#stay" String=":!%&amp;()+,-/.*&lt;=&gt;?[]|~^&#59;"/>
62 <RegExpr attribute="Function" context="#stay" String="\b[_\w][_\w\d]*(?=[\s]*[(])" />
63 <RegExpr attribute="Annotation" context="#stay" String="@\w+" />
64 <DetectIdentifier attribute="Normal Text"/>
65 </context>
66
67 <context attribute="String" lineEndContext="#pop" name="String">
68 <LineContinue attribute="String" context="#pop"/>
69 <HlCStringChar attribute="Char" context="#stay"/>
70 <DetectChar attribute="String" context="#pop" char="&quot;"/>
71 </context>
72
73 <context attribute="String" lineEndContext="#pop" name="Single quoted String">
74 <LineContinue attribute="String" context="#pop"/>
75 <HlCStringChar attribute="Char" context="#stay"/>
76 <DetectChar attribute="String" context="#pop" char="'"/>
77 </context>
78
79 <context attribute="String" lineEndContext="#stay" name="Backtick String">
80 <HlCStringChar attribute="Char" context="#stay"/>
81 <Detect2Chars attribute="Substitution" char="$" char1="(" context="Subst"/>
82 <DetectChar attribute="Substitution" char="$" context="Short Subst"/>
83 <DetectChar attribute="String" context="#pop" char="`"/>
84 </context>
85
86 <context attribute="Char" lineEndContext="#pop" name="Char">
87 <HlCStringChar attribute="Char" context="#stay" />
88 <DetectChar attribute="Char" context="#pop" char="'" />
89 </context>
90
91 <context name="Braces" attribute="Normal Text" lineEndContext="#stay">
92 <DetectChar attribute="Normal Text" char=")" context="#pop"/>
93 <!-- Highlight everything inside as code. -->
94 <IncludeRules context="Normal"/>
95 </context>
96
97 <context name="Subst" attribute="Normal Text" lineEndContext="#stay">
98 <!-- Switch to a new context when encountering an lbrace so that we don't #pop too early. -->
99 <DetectChar attribute="Normal Text" char="(" context="Braces"/>
100 <DetectChar attribute="Substitution" char=")" context="#pop"/>
101 <!-- Highlight substitution as code. -->
102 <IncludeRules context="Normal"/>
103 </context>
104
105 <context name="Short Subst" attribute="Substitution" lineEndContext="#pop">
106 <RegExpr attribute="Substitution" String="\w(?!\w)" context="#pop"/>
107 </context>
108
109 <context name="Package" attribute="Package" lineEndContext="#pop">
110 <RegExpr attribute="Package" String="[\w\\.]+" context="#pop"/>
111 </context>
112
113 <context name="MatchComment" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
114 <IncludeRules context="##Doxygen" />
115 <Detect2Chars attribute="Comment" context="#pop!Commentar 1" char="/" char1="/" />
116 <Detect2Chars attribute="Comment" context="#pop!Commentar 2" char="/" char1="*" beginRegion="Comment" />
117 </context>
118
119 <context attribute="Comment" lineEndContext="#pop" name="Commentar 1">
120 <IncludeRules context="##Comments" />
121 </context>
122 <context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
123 <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="BlockComment"/>
124 <IncludeRules context="##Comments" />
125 </context>
126 </contexts>
127 <itemDatas>
128 <itemData name="Normal Text" defStyleNum="dsNormal"/>
129 <itemData name="Keyword" defStyleNum="dsKeyword"/>
130 <itemData name="Data Type" defStyleNum="dsDataType"/>
131 <itemData name="Decimal" defStyleNum="dsDecVal"/>
132 <itemData name="Octal" defStyleNum="dsBaseN"/>
133 <itemData name="Hex" defStyleNum="dsBaseN"/>
134 <itemData name="Float" defStyleNum="dsFloat"/>
135 <itemData name="Char" defStyleNum="dsChar"/>
136 <itemData name="String" defStyleNum="dsString"/>
137 <itemData name="Comment" defStyleNum="dsComment"/>
138 <itemData name="Symbol" defStyleNum="dsOperator"/>
139 <itemData name="Substitution" defStyleNum="dsOthers"/>
140 <itemData name="Package" defStyleNum="dsFunction"/>
141 <itemData name="Function" defStyleNum="dsFunction"/>
142 <itemData name="Annotation" defStyleNum="dsAttribute"/>
143 </itemDatas>
144 </highlighting>
145 <general>
146 <comments>
147 <comment name="singleLine" start="#" />
148 <comment name="multiLine" start="/*" end="*/" region="BlockComment"/>
149 </comments>
150 <keywords casesensitive="1" />
151 </general>
152 </language>
153 <!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->