PageRenderTime 41ms CodeModel.GetById 18ms RepoModel.GetById 1ms 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
Possible License(s): AGPL-3.0, LGPL-2.1, GPL-2.0
  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. <context attribute="String" lineEndContext="#pop" name="String">
  102. <LineContinue attribute="String" context="#stay"/>
  103. <HlCStringChar attribute="String Char" context="#stay"/>
  104. <DetectChar attribute="String" context="#pop" char="&quot;"/>
  105. </context>
  106. <context attribute="Region Marker" lineEndContext="#pop" name="Region Marker">
  107. </context>
  108. <context attribute="Comment" lineEndContext="#pop" name="Commentar 1">
  109. <LineContinue attribute="Comment" context="#stay"/>
  110. <IncludeRules context="##Alerts" />
  111. </context>
  112. <context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
  113. <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
  114. <IncludeRules context="##Alerts" />
  115. </context>
  116. <context attribute="Error" lineEndContext="#pop" name="AfterHash">
  117. <!-- define, elif, else, endif, error, if, ifdef, ifndef, include, include_next, line, pragma, undef, warning -->
  118. <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*if(?:def|ndef)?(?=\s+\S)" insensitive="true" beginRegion="PP" firstNonSpace="true" />
  119. <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*endif" insensitive="true" endRegion="PP" firstNonSpace="true" />
  120. <RegExpr attribute="Preprocessor" context="Define" String="#\s*define.*((?=\\))" insensitive="true" firstNonSpace="true" />
  121. <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*(?:el(?:se|if)|include(?:_next)?|define|undef|line|error|warning|pragma)" insensitive="true" firstNonSpace="true" />
  122. <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s+[0-9]+" insensitive="true" firstNonSpace="true" />
  123. </context>
  124. <context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor">
  125. <LineContinue attribute="Preprocessor" context="#stay"/>
  126. <RangeDetect attribute="Prep. Lib" context="#stay" char="&quot;" char1="&quot;"/>
  127. <RangeDetect attribute="Prep. Lib" context="#stay" char="&lt;" char1="&gt;"/>
  128. <IncludeRules context="##Doxygen" />
  129. <Detect2Chars attribute="Comment" context="Commentar/Preprocessor" char="/" char1="*" beginRegion="Comment2" />
  130. </context>
  131. <context attribute="Preprocessor" lineEndContext="#pop" name="Define">
  132. <LineContinue attribute="Preprocessor" context="#stay"/>
  133. </context>
  134. <context attribute="Comment" lineEndContext="#stay" name="Commentar/Preprocessor">
  135. <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment2" />
  136. </context>
  137. <context attribute="Comment" lineEndContext="#stay" name="Outscoped" >
  138. <DetectSpaces />
  139. <IncludeRules context="##Alerts" />
  140. <DetectIdentifier />
  141. <DetectChar attribute="String" context="String" char="&quot;"/>
  142. <IncludeRules context="##Doxygen" />
  143. <Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
  144. <Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
  145. <RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="PP" firstNonSpace="true" />
  146. <RegExpr attribute="Preprocessor" context="#pop" String="#\s*el(?:se|if)" firstNonSpace="true" />
  147. <RegExpr attribute="Preprocessor" context="#pop" String="#\s*endif" endRegion="PP" firstNonSpace="true" />
  148. </context>
  149. <context attribute="Comment" lineEndContext="#stay" name="Outscoped intern">
  150. <DetectSpaces />
  151. <IncludeRules context="##Alerts" />
  152. <DetectIdentifier />
  153. <DetectChar attribute="String" context="String" char="&quot;"/>
  154. <IncludeRules context="##Doxygen" />
  155. <Detect2Chars attribute="Comment" context="Commentar 1" char="\#"/>
  156. <Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
  157. <RegExpr attribute="Comment" context="Outscoped intern" String="#\(.*\)$" beginRegion="PP" firstNonSpace="true" />
  158. <RegExpr attribute="Comment" context="#pop" String="#\s*endif" endRegion="PP" firstNonSpace="true" />
  159. </context>
  160. </contexts>
  161. <itemDatas>
  162. <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/>
  163. <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/>
  164. <itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false"/>
  165. <itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="false"/>
  166. <itemData name="Octal" defStyleNum="dsBaseN" spellChecking="false"/>
  167. <itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false"/>
  168. <itemData name="Float" defStyleNum="dsFloat" spellChecking="false"/>
  169. <itemData name="Char" defStyleNum="dsChar" spellChecking="false"/>
  170. <itemData name="String" defStyleNum="dsString"/>
  171. <itemData name="String Char" defStyleNum="dsChar"/>
  172. <itemData name="Comment" defStyleNum="dsComment"/>
  173. <itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false"/>
  174. <itemData name="Preprocessor" defStyleNum="dsOthers" spellChecking="false"/>
  175. <itemData name="Prep. Lib" defStyleNum="dsOthers" spellChecking="false"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
  176. <itemData name="Alert" defStyleNum="dsAlert" spellChecking="false"/>
  177. <itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false"/>
  178. <itemData name="Error" defStyleNum="dsError" spellChecking="false"/>
  179. </itemDatas>
  180. </highlighting>
  181. <general>
  182. <comments>
  183. <comment name="singleLine" start="//" />
  184. <comment name="multiLine" start="/*" end="*/" />
  185. </comments>
  186. <keywords casesensitive="1" additionalDeliminator="'&quot;" />
  187. </general>
  188. </language>