c-hl.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Syntax highlighting definition for C
  4. xslthl - XSLT Syntax Highlighting
  5. http://sourceforge.net/projects/xslthl/
  6. Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks
  7. This software is provided 'as-is', without any express or implied
  8. warranty. In no event will the authors be held liable for any damages
  9. arising from the use of this software.
  10. Permission is granted to anyone to use this software for any purpose,
  11. including commercial applications, and to alter it and redistribute it
  12. freely, subject to the following restrictions:
  13. 1. The origin of this software must not be misrepresented; you must not
  14. claim that you wrote the original software. If you use this software
  15. in a product, an acknowledgment in the product documentation would be
  16. appreciated but is not required.
  17. 2. Altered source versions must be plainly marked as such, and must not be
  18. misrepresented as being the original software.
  19. 3. This notice may not be removed or altered from any source distribution.
  20. Michal Molhanec <mol1111 at users.sourceforge.net>
  21. Jirka Kosek <kosek at users.sourceforge.net>
  22. Michiel Hendriks <elmuerte at users.sourceforge.net>
  23. -->
  24. <highlighters>
  25. <highlighter type="multiline-comment">
  26. <start>/**</start>
  27. <end>*/</end>
  28. <style>doccomment</style>
  29. </highlighter>
  30. <highlighter type="oneline-comment">
  31. <start><![CDATA[/// ]]></start>
  32. <style>doccomment</style>
  33. </highlighter>
  34. <highlighter type="multiline-comment">
  35. <start>/*</start>
  36. <end>*/</end>
  37. </highlighter>
  38. <highlighter type="oneline-comment">//</highlighter>
  39. <highlighter type="oneline-comment">
  40. <!-- use the online-comment highlighter to detect directives -->
  41. <start>#</start>
  42. <lineBreakEscape>\</lineBreakEscape>
  43. <style>directive</style>
  44. <solitary />
  45. </highlighter>
  46. <highlighter type="string">
  47. <string>"</string>
  48. <escape>\</escape>
  49. </highlighter>
  50. <highlighter type="string">
  51. <string>'</string>
  52. <escape>\</escape>
  53. </highlighter>
  54. <highlighter type="hexnumber">
  55. <prefix>0x</prefix>
  56. <suffix>ul</suffix>
  57. <suffix>lu</suffix>
  58. <suffix>u</suffix>
  59. <suffix>l</suffix>
  60. <ignoreCase />
  61. </highlighter>
  62. <highlighter type="number">
  63. <point>.</point>
  64. <pointStarts />
  65. <exponent>e</exponent>
  66. <suffix>ul</suffix>
  67. <suffix>lu</suffix>
  68. <suffix>u</suffix>
  69. <suffix>f</suffix>
  70. <suffix>l</suffix>
  71. <ignoreCase />
  72. </highlighter>
  73. <highlighter type="keywords">
  74. <keyword>auto</keyword>
  75. <keyword>_Bool</keyword>
  76. <keyword>break</keyword>
  77. <keyword>case</keyword>
  78. <keyword>char</keyword>
  79. <keyword>_Complex</keyword>
  80. <keyword>const</keyword>
  81. <keyword>continue</keyword>
  82. <keyword>default</keyword>
  83. <keyword>do</keyword>
  84. <keyword>double</keyword>
  85. <keyword>else</keyword>
  86. <keyword>enum</keyword>
  87. <keyword>extern</keyword>
  88. <keyword>float</keyword>
  89. <keyword>for</keyword>
  90. <keyword>goto</keyword>
  91. <keyword>if</keyword>
  92. <keyword>_Imaginary</keyword>
  93. <keyword>inline</keyword>
  94. <keyword>int</keyword>
  95. <keyword>long</keyword>
  96. <keyword>register</keyword>
  97. <keyword>restrict</keyword>
  98. <keyword>return</keyword>
  99. <keyword>short</keyword>
  100. <keyword>signed</keyword>
  101. <keyword>sizeof</keyword>
  102. <keyword>static</keyword>
  103. <keyword>struct</keyword>
  104. <keyword>switch</keyword>
  105. <keyword>typedef</keyword>
  106. <keyword>union</keyword>
  107. <keyword>unsigned</keyword>
  108. <keyword>void</keyword>
  109. <keyword>volatile</keyword>
  110. <keyword>while</keyword>
  111. </highlighter>
  112. </highlighters>