KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

199 lines
5.8KB

  1. <?php
  2. /*************************************************************************************
  3. * gdb.php
  4. * --------
  5. * Author: Milian Wolff (mail@milianw.de)
  6. * Copyright: (c) 2009 Milian Wolff
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2009/06/24
  9. *
  10. * GDB language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2009/06/24 (1.0.0)
  15. * - First Release
  16. *
  17. * TODO (updated 2009/06/24)
  18. * -------------------------
  19. *
  20. *************************************************************************************
  21. *
  22. * This file is part of GeSHi.
  23. *
  24. * GeSHi is free software; you can redistribute it and/or modify
  25. * it under the terms of the GNU General Public License as published by
  26. * the Free Software Foundation; either version 2 of the License, or
  27. * (at your option) any later version.
  28. *
  29. * GeSHi is distributed in the hope that it will be useful,
  30. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  31. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  32. * GNU General Public License for more details.
  33. *
  34. * You should have received a copy of the GNU General Public License
  35. * along with GeSHi; if not, write to the Free Software
  36. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  37. *
  38. ************************************************************************************/
  39. $language_data = array (
  40. 'LANG_NAME' => 'GDB',
  41. 'COMMENT_SINGLE' => array(),
  42. 'COMMENT_MULTI' => array(),
  43. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  44. 'QUOTEMARKS' => array('"'),
  45. 'ESCAPE_CHAR' => '\\',
  46. 'KEYWORDS' => array(
  47. 0 => array(
  48. 'Application',
  49. 'signal',
  50. ),
  51. 1 => array(
  52. 'Segmentation fault',
  53. '[KCrash Handler]',
  54. ),
  55. ),
  56. 'NUMBERS' => false,
  57. 'SYMBOLS' => array(
  58. ),
  59. 'CASE_SENSITIVE' => array(
  60. 0 => true,
  61. 1 => true
  62. ),
  63. 'STYLES' => array(
  64. 'KEYWORDS' => array(
  65. 0 => 'font-weight:bold;',
  66. 1 => 'font-weight:bold; color: #ff0000;'
  67. ),
  68. 'COMMENTS' => array(
  69. ),
  70. 'ESCAPE_CHAR' => array(
  71. 0 => ''
  72. ),
  73. 'BRACKETS' => array(
  74. 0 => 'font-weight:bold;'
  75. ),
  76. 'STRINGS' => array(
  77. 0 => 'color: #933;'
  78. ),
  79. 'NUMBERS' => array(
  80. ),
  81. 'METHODS' => array(
  82. ),
  83. 'SYMBOLS' => array(
  84. ),
  85. 'REGEXPS' => array(
  86. 0 => 'color: #000066; font-weight:bold;',
  87. 1 => 'color: #006600;',
  88. 2 => 'color: #B07E00;',
  89. 3 => 'color: #0057AE; text-style:italic;',
  90. 4 => 'color: #0057AE; text-style:italic;',
  91. 5 => 'color: #442886;',
  92. 6 => 'color: #442886; font-weight:bold;',
  93. 7 => 'color: #FF0000; font-weight:bold;',
  94. 8 => 'color: #006E26;',
  95. 9 => 'color: #555;',
  96. ),
  97. 'SCRIPT' => array(
  98. )
  99. ),
  100. 'URLS' => array(
  101. 0 => '',
  102. 1 => ''
  103. ),
  104. 'OOLANG' => false,
  105. 'OBJECT_SPLITTERS' => array(
  106. ),
  107. 'REGEXPS' => array(
  108. //[Current Thread...], [KCrash Handler] etc.
  109. 0 => array(
  110. GESHI_SEARCH => '^\[.+\]',
  111. GESHI_REPLACE => '\\0',
  112. GESHI_MODIFIERS => 'm',
  113. GESHI_BEFORE => '',
  114. GESHI_AFTER => ''
  115. ),
  116. //stack number
  117. 1 => array(
  118. GESHI_SEARCH => '^#\d+',
  119. GESHI_REPLACE => '\\0',
  120. GESHI_MODIFIERS => 'm',
  121. GESHI_BEFORE => '',
  122. GESHI_AFTER => ''
  123. ),
  124. //Thread X (Thread...)
  125. 2 => array(
  126. GESHI_SEARCH => '^Thread \d.+$',
  127. GESHI_REPLACE => '\\0',
  128. GESHI_MODIFIERS => 'm',
  129. GESHI_BEFORE => '',
  130. GESHI_AFTER => ''
  131. ),
  132. //Files with linenumbers
  133. 3 => array(
  134. GESHI_SEARCH => '(at\s+)(.+)(:\d+\s*)$',
  135. GESHI_REPLACE => '\\2',
  136. GESHI_MODIFIERS => 'm',
  137. GESHI_BEFORE => '\\1',
  138. GESHI_AFTER => '\\3'
  139. ),
  140. //Libs without linenumbers
  141. 4 => array(
  142. GESHI_SEARCH => '(from\s+)(.+)(\s*)$',
  143. GESHI_REPLACE => '\\2',
  144. GESHI_MODIFIERS => 'm',
  145. GESHI_BEFORE => '\\1',
  146. GESHI_AFTER => '\\3'
  147. ),
  148. //Line numbers
  149. 5 => array(
  150. GESHI_SEARCH => '(:)(\d+)(\s*)$',
  151. GESHI_REPLACE => '\\2',
  152. GESHI_MODIFIERS => 'm',
  153. GESHI_BEFORE => '\\1',
  154. GESHI_AFTER => '\\3'
  155. ),
  156. //Location
  157. 6 => array(
  158. GESHI_SEARCH => '(\s+)(in\s+)?([^ 0-9][^ ]*)([ \n]+\()',
  159. GESHI_REPLACE => '\\3',
  160. GESHI_MODIFIERS => '',
  161. GESHI_BEFORE => '\\1\\2',
  162. GESHI_AFTER => '\\4'
  163. ),
  164. // interesting parts: abort, qFatal, assertions, null ptrs, ...
  165. 7 => array(
  166. GESHI_SEARCH => '\b((?:\*__GI_)?(?:__assert_fail|abort)|qFatal|0x0)\b([^\.]|$)',
  167. GESHI_REPLACE => '\\1',
  168. GESHI_MODIFIERS => '',
  169. GESHI_BEFORE => '',
  170. GESHI_AFTER => '\\2'
  171. ),
  172. // Namespace / Classes
  173. 8 => array(
  174. GESHI_SEARCH => '\b(\w+)(::)',
  175. GESHI_REPLACE => '\\1',
  176. GESHI_MODIFIERS => 'U',
  177. GESHI_BEFORE => '',
  178. GESHI_AFTER => '\\2'
  179. ),
  180. // make ptr adresses and <value optimized out> uninteresting
  181. 9 => '\b(?:0x[a-f0-9]{2,}|value\s+optimized\s+out)\b'
  182. ),
  183. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  184. 'SCRIPT_DELIMITERS' => array(
  185. ),
  186. 'HIGHLIGHT_STRICT_BLOCK' => array(
  187. ),
  188. 'PARSER_CONTROL' => array(
  189. 'ENABLE_FLAGS' => array(
  190. 'NUMBERS' => false
  191. ),
  192. )
  193. );
  194. // kate: replace-tabs on; indent-width 4;
  195. ?>