PageRenderTime 113ms CodeModel.GetById 50ms app.highlight 6ms RepoModel.GetById 55ms app.codeStats 0ms

/tools/kate/jacl.xml

http://jacl.googlecode.com/
XML | 198 lines | 180 code | 10 blank | 8 comment | 0 complexity | 96652defe4445ba86298ceaa1ecd7c27 MD5 | raw file
  1<?xml version="1.0" encoding="UTF-8"?>
  2<!DOCTYPE language SYSTEM "language.dtd">
  3<language name="JACL" section="Scripts"
  4          version="1.44" kateversion="2.4"
  5          indenter="cstyle"
  6          extensions="*.jacl;*.JACL"
  7          mimetype="text/jacl"
  8          priority="5">
  9<!--
 10##########################################################################
 11## Fixes by Sebastian Pipping (webmaster@hartwork.org)
 12##
 13## NOTE: Keep in sync with C++ highlighter! (cpp.xml)
 14##########################################################################
 15-->
 16  <highlighting>
 17    <list name="keywords">
 18      <item> integer </item>
 19      <item> case </item>
 20      <item> continue </item>
 21      <item> default </item>
 22      <item> do </item>
 23      <item> else </item>
 24      <item> enum </item>
 25      <item> extern </item>
 26      <item> for </item>
 27      <item> OUTDOORS </item>
 28      <item> if </item>
 29      <item> inline </item>
 30      <item> return </item>
 31      <item> sizeof </item>
 32      <item> struct </item>
 33      <item> switch </item>
 34      <item> typedef </item>
 35      <item> here </item>
 36      <item> while </item>
 37    </list>
 38    <list name="types">
 39      <item> grammar </item>
 40      <item> char </item>
 41      <item> constant </item>
 42      <item> attribute </item>
 43      <item> float </item>
 44      <item> int </item>
 45      <item> long </item>
 46      <item> register </item>
 47      <item> restrict </item>
 48      <item> short </item>
 49      <item> signed </item>
 50      <item> static </item>
 51      <item> unsigned </item>
 52      <item> clear </item>
 53      <item> limbo </item>
 54      <item> int8_t </item>
 55      <item> int16_t </item>
 56      <item> int32_t </item>
 57      <item> int64_t </item>
 58      <item> uint8_t </item>
 59      <item> uint16_t </item>
 60      <item> uint32_t </item>
 61      <item> uint64_t </item>
 62      <item> wchar_t </item>
 63      <item> _Imaginary </item>
 64      <item> _Complex </item>
 65      <item> _Bool </item>
 66    </list>
 67    <contexts>
 68      <context attribute="Normal Text" lineEndContext="#stay" name="Normal">
 69        <DetectSpaces />
 70	<RegExpr attribute="Preprocessor" context="Outscoped" String="#\s*if\s+0\s*$" beginRegion="PP" firstNonSpace="true" />
 71        <DetectChar context="AfterHash" char="£" char1="+" firstNonSpace="true" lookAhead="true" />
 72        <StringDetect attribute="Region Marker" context="Region Marker" String="//BEGIN" beginRegion="Region1" firstNonSpace="true" />
 73        <StringDetect attribute="Region Marker" context="Region Marker" String="//END" endRegion="Region1" firstNonSpace="true" />
 74        <keyword attribute="Keyword" context="#stay" String="keywords"/>
 75        <keyword attribute="Data Type" context="#stay" String="types"/>
 76        <DetectIdentifier />
 77        <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1" />
 78        <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1" />
 79        <Float attribute="Float" context="#stay">
 80          <AnyChar String="fF" attribute="Float" context="#stay"/>
 81        </Float>
 82        <HlCOct attribute="Octal" context="#stay"/>
 83        <HlCHex attribute="Hex" context="#stay"/>
 84        <Int attribute="Decimal" context="#stay" >
 85          <StringDetect attribute="Decimal" context="#stay" String="ULL" insensitive="TRUE"/>
 86          <StringDetect attribute="Decimal" context="#stay" String="LUL" insensitive="TRUE"/>
 87          <StringDetect attribute="Decimal" context="#stay" String="LLU" insensitive="TRUE"/>
 88          <StringDetect attribute="Decimal" context="#stay" String="UL" insensitive="TRUE"/>
 89          <StringDetect attribute="Decimal" context="#stay" String="LU" insensitive="TRUE"/>
 90          <StringDetect attribute="Decimal" context="#stay" String="LL" insensitive="TRUE"/>
 91          <StringDetect attribute="Decimal" context="#stay" String="U" insensitive="TRUE"/>
 92          <StringDetect attribute="Decimal" context="#stay" String="L" insensitive="TRUE"/>
 93        </Int>
 94        <HlCChar attribute="Char" context="#stay"/>
 95        <DetectChar attribute="String" context="String" char="&quot;"/>
 96        <IncludeRules context="##Doxygen" />
 97        <Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
 98        <Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
 99        <AnyChar attribute="Symbol" context="#stay" String=":!%&amp;()+,-/.*&lt;=&gt;?[]|~^&#59;"/>
100      </context>
101
102      <context attribute="String" lineEndContext="#pop" name="String">
103        <LineContinue attribute="String" context="#stay"/>
104        <HlCStringChar attribute="String Char" context="#stay"/>
105        <DetectChar attribute="String" context="#pop" char="&quot;"/>
106      </context>
107
108      <context attribute="Region Marker" lineEndContext="#pop" name="Region Marker">
109      </context>
110
111      <context attribute="Comment" lineEndContext="#pop" name="Commentar 1">
112        <LineContinue attribute="Comment" context="#stay"/>
113        <IncludeRules context="##Alerts" />
114      </context>
115
116      <context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
117        <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
118        <IncludeRules context="##Alerts" />
119      </context>
120
121      <context attribute="Error" lineEndContext="#pop" name="AfterHash">
122        <!-- define, elif, else, endif, error, if, ifdef, ifndef, include, include_next, line, pragma, undef, warning -->
123        <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*if(?:def|ndef)?(?=\s+\S)" insensitive="true" beginRegion="PP" firstNonSpace="true" />
124        <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*endif" insensitive="true" endRegion="PP" firstNonSpace="true" />
125        <RegExpr attribute="Preprocessor" context="Define" String="#\s*define.*((?=\\))" insensitive="true" firstNonSpace="true" />
126        <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*(?:el(?:se|if)|include(?:_next)?|define|undef|line|error|warning|pragma)" insensitive="true" firstNonSpace="true" />
127        <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s+[0-9]+" insensitive="true" firstNonSpace="true" />
128      </context>
129
130      <context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor">
131        <LineContinue attribute="Preprocessor" context="#stay"/>
132        <RangeDetect attribute="Prep. Lib" context="#stay" char="&quot;" char1="&quot;"/>
133        <RangeDetect attribute="Prep. Lib" context="#stay" char="&lt;" char1="&gt;"/>
134        <IncludeRules context="##Doxygen" />
135        <Detect2Chars attribute="Comment" context="Commentar/Preprocessor" char="/" char1="*" beginRegion="Comment2" />
136      </context>
137
138      <context attribute="Preprocessor" lineEndContext="#pop" name="Define">
139        <LineContinue attribute="Preprocessor" context="#stay"/>
140      </context>
141
142      <context attribute="Comment" lineEndContext="#stay" name="Commentar/Preprocessor">
143        <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment2" />
144      </context>
145
146      <context attribute="Comment" lineEndContext="#stay" name="Outscoped" >
147        <DetectSpaces />
148        <IncludeRules context="##Alerts" />
149        <DetectIdentifier />
150        <DetectChar attribute="String" context="String" char="&quot;"/>
151        <IncludeRules context="##Doxygen" />
152        <Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
153        <Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
154        <RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="PP" firstNonSpace="true" />
155        <RegExpr attribute="Preprocessor" context="#pop" String="#\s*el(?:se|if)" firstNonSpace="true" />
156        <RegExpr attribute="Preprocessor" context="#pop" String="#\s*endif" endRegion="PP" firstNonSpace="true" />
157      </context>
158
159      <context attribute="Comment" lineEndContext="#stay" name="Outscoped intern">
160        <DetectSpaces />
161        <IncludeRules context="##Alerts" />
162        <DetectIdentifier />
163        <DetectChar attribute="String" context="String" char="&quot;"/>
164        <IncludeRules context="##Doxygen" />
165        <Detect2Chars attribute="Comment" context="Commentar 1" char="\#"/>
166        <Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
167        <RegExpr attribute="Comment" context="Outscoped intern" String="#\(.*\)$" beginRegion="PP" firstNonSpace="true" />
168        <RegExpr attribute="Comment" context="#pop" String="#\s*endif" endRegion="PP" firstNonSpace="true" />
169      </context>
170    </contexts>
171    <itemDatas>
172      <itemData name="Normal Text"  defStyleNum="dsNormal" spellChecking="false"/>
173      <itemData name="Keyword"      defStyleNum="dsKeyword" spellChecking="false"/>
174      <itemData name="Data Type"    defStyleNum="dsDataType" spellChecking="false"/>
175      <itemData name="Decimal"      defStyleNum="dsDecVal" spellChecking="false"/>
176      <itemData name="Octal"        defStyleNum="dsBaseN" spellChecking="false"/>
177      <itemData name="Hex"          defStyleNum="dsBaseN" spellChecking="false"/>
178      <itemData name="Float"        defStyleNum="dsFloat" spellChecking="false"/>
179      <itemData name="Char"         defStyleNum="dsChar" spellChecking="false"/>
180      <itemData name="String"       defStyleNum="dsString"/>
181      <itemData name="String Char"  defStyleNum="dsChar"/>
182      <itemData name="Comment"      defStyleNum="dsComment"/>
183      <itemData name="Symbol"       defStyleNum="dsNormal" spellChecking="false"/>
184      <itemData name="Preprocessor" defStyleNum="dsOthers" spellChecking="false"/>
185      <itemData name="Prep. Lib"    defStyleNum="dsOthers" spellChecking="false"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
186      <itemData name="Alert"        defStyleNum="dsAlert" spellChecking="false"/>
187      <itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false"/>
188      <itemData name="Error"        defStyleNum="dsError" spellChecking="false"/>
189    </itemDatas>
190  </highlighting>
191  <general>
192    <comments>
193      <comment name="singleLine" start="//" />
194      <comment name="multiLine" start="/*" end="*/" />
195    </comments>
196    <keywords casesensitive="1" additionalDeliminator="'&quot;" />
197  </general>
198</language>