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.9 |
---|
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 | |
---|
40 | $language_data = array ( |
---|
41 | 'LANG_NAME' => 'GDB', |
---|
42 | 'COMMENT_SINGLE' => array(), |
---|
43 | 'COMMENT_MULTI' => array(), |
---|
44 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, |
---|
45 | 'QUOTEMARKS' => array('"'), |
---|
46 | 'ESCAPE_CHAR' => '', |
---|
47 | 'KEYWORDS' => array( |
---|
48 | 0 => array( |
---|
49 | 'Application', |
---|
50 | 'signal', |
---|
51 | ), |
---|
52 | 1 => array( |
---|
53 | 'Segmentation fault', |
---|
54 | '[KCrash Handler]', |
---|
55 | ), |
---|
56 | ), |
---|
57 | 'NUMBERS' => |
---|
58 | GESHI_NUMBER_INT_BASIC, |
---|
59 | 'SYMBOLS' => array( |
---|
60 | ), |
---|
61 | 'CASE_SENSITIVE' => array( |
---|
62 | 0 => true, |
---|
63 | 1 => true |
---|
64 | ), |
---|
65 | 'STYLES' => array( |
---|
66 | 'KEYWORDS' => array( |
---|
67 | 0 => 'font-weight:bold;', |
---|
68 | 1 => 'font-weight:bold; color: #ff0000;' |
---|
69 | ), |
---|
70 | 'COMMENTS' => array( |
---|
71 | ), |
---|
72 | 'ESCAPE_CHAR' => array( |
---|
73 | 0 => '' |
---|
74 | ), |
---|
75 | 'BRACKETS' => array( |
---|
76 | 0 => 'font-weight:bold;' |
---|
77 | ), |
---|
78 | 'STRINGS' => array( |
---|
79 | 0 => 'color: #933;' |
---|
80 | ), |
---|
81 | 'NUMBERS' => array( |
---|
82 | 0 => 'color: #cc66cc;', |
---|
83 | ), |
---|
84 | 'METHODS' => array( |
---|
85 | ), |
---|
86 | 'SYMBOLS' => array( |
---|
87 | ), |
---|
88 | 'REGEXPS' => array( |
---|
89 | 0 => 'color: #000066; font-weight:bold;', |
---|
90 | 1 => 'color: #006600;', |
---|
91 | 2 => 'color: #000066;', |
---|
92 | 3 => 'color: #0066FF; text-style:italic;', |
---|
93 | 4 => 'color: #80B5FF; text-style:italic;', |
---|
94 | 5 => 'color: #A3007D;', |
---|
95 | 6 => 'color: #FF00BF;', |
---|
96 | 7 => 'font-weight: bold;' |
---|
97 | ), |
---|
98 | 'SCRIPT' => array( |
---|
99 | ) |
---|
100 | ), |
---|
101 | 'URLS' => array( |
---|
102 | 0 => '', |
---|
103 | 1 => '' |
---|
104 | ), |
---|
105 | 'OOLANG' => false, |
---|
106 | 'OBJECT_SPLITTERS' => array( |
---|
107 | ), |
---|
108 | 'REGEXPS' => array( |
---|
109 | //[Current Thread...], [KCrash Handler] etc. |
---|
110 | 0 => array( |
---|
111 | GESHI_SEARCH => '^\[.+\]', |
---|
112 | GESHI_REPLACE => '\\0', |
---|
113 | GESHI_MODIFIERS => 'm', |
---|
114 | GESHI_BEFORE => '', |
---|
115 | GESHI_AFTER => '' |
---|
116 | ), |
---|
117 | //stack number |
---|
118 | 1 => array( |
---|
119 | GESHI_SEARCH => '^#\d+', |
---|
120 | GESHI_REPLACE => '\\0', |
---|
121 | GESHI_MODIFIERS => 'm', |
---|
122 | GESHI_BEFORE => '', |
---|
123 | GESHI_AFTER => '' |
---|
124 | ), |
---|
125 | //Thread X (Thread...) |
---|
126 | 2 => array( |
---|
127 | GESHI_SEARCH => '^Thread \d.+$', |
---|
128 | GESHI_REPLACE => '\\0', |
---|
129 | GESHI_MODIFIERS => 'm', |
---|
130 | GESHI_BEFORE => '', |
---|
131 | GESHI_AFTER => '' |
---|
132 | ), |
---|
133 | //Files with linenumbers |
---|
134 | 3 => array( |
---|
135 | GESHI_SEARCH => '(at )(.+)(:\d+\s*)$', |
---|
136 | GESHI_REPLACE => '\\2', |
---|
137 | GESHI_MODIFIERS => 'm', |
---|
138 | GESHI_BEFORE => '\\1', |
---|
139 | GESHI_AFTER => '\\3' |
---|
140 | ), |
---|
141 | //Libs without linenumbers |
---|
142 | 4 => array( |
---|
143 | GESHI_SEARCH => '(from )(.+)(\s*)$', |
---|
144 | GESHI_REPLACE => '\\2', |
---|
145 | GESHI_MODIFIERS => 'm', |
---|
146 | GESHI_BEFORE => '\\1', |
---|
147 | GESHI_AFTER => '\\3' |
---|
148 | ), |
---|
149 | //Hex mem address |
---|
150 | 5 => '0x[a-f0-9]+', |
---|
151 | //Line numbers |
---|
152 | 6 => array( |
---|
153 | GESHI_SEARCH => '(:)(\d+)(\s*)$', |
---|
154 | GESHI_REPLACE => '\\2', |
---|
155 | GESHI_MODIFIERS => 'm', |
---|
156 | GESHI_BEFORE => '\\1', |
---|
157 | GESHI_AFTER => '\\3' |
---|
158 | ), |
---|
159 | //Location |
---|
160 | 7 => array( |
---|
161 | GESHI_SEARCH => '( in )([^ \(\)]+)( \()', |
---|
162 | GESHI_REPLACE => '\\2', |
---|
163 | GESHI_MODIFIERS => '', |
---|
164 | GESHI_BEFORE => '\\1', |
---|
165 | GESHI_AFTER => '\\3' |
---|
166 | ), |
---|
167 | ), |
---|
168 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, |
---|
169 | 'SCRIPT_DELIMITERS' => array( |
---|
170 | ), |
---|
171 | 'HIGHLIGHT_STRICT_BLOCK' => array( |
---|
172 | ) |
---|
173 | ); |
---|
174 | |
---|
175 | ?> |
---|