summaryrefslogtreecommitdiff
path: root/share/tinykate/syntax/gnuassembler.xml
Unidiff
Diffstat (limited to 'share/tinykate/syntax/gnuassembler.xml') (more/less context) (ignore whitespace changes)
-rw-r--r--share/tinykate/syntax/gnuassembler.xml286
1 files changed, 286 insertions, 0 deletions
diff --git a/share/tinykate/syntax/gnuassembler.xml b/share/tinykate/syntax/gnuassembler.xml
new file mode 100644
index 0000000..b874383
--- a/dev/null
+++ b/share/tinykate/syntax/gnuassembler.xml
@@ -0,0 +1,286 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE language SYSTEM "language.dtd">
3<!--
4
5*************************************************************************
6* *
7* Syntax highlighting for the GNU Assembler *
8* Copyright (C) 2002, John Zaitseff *
9* *
10*************************************************************************
11
12Author: John Zaitseff <J.Zaitseff@zap.org.au>
13Date: 15th April, 2002
14Version: 1.0
15
16This file contains the XML syntax highlighting description for the GNU
17Assembler, for KATE, the KDE Advanced Editor. Keywords have been taken
18directly from the GNU Assembler source code (read.c).
19
20Known problems: Floating point highlighting does not work correctly.
21
22This program, including associated files, is free software. You may
23distribute it and/or modify it under the terms of the GNU General Public
24License as published by the Free Software Foundation; either Version 2 of
25the license, or (at your option) any later version.
26
27This program is distributed in the hope that it will be useful, but
28WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
29or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
30for more details.
31
32You should have received a copy of the GNU General Public License along
33with this program; if not, write to the Free Software Foundation, Inc.,
3459 Temple Place, Suite 330, Boston, MA 02111-1307 USA
35
36-->
37
38<language name="GNU Assembler" section="Sources"
39 extensions="*.s;*.S;*.inc" mimetype="text/x-asm">
40 <highlighting>
41 <list name="keywords">
42 <item>.abort</item>
43 <item>.align</item>
44 <item>.appfile</item>
45 <item>.appline</item>
46 <item>.ascii</item>
47 <item>.asciz</item>
48 <item>.balign</item>
49 <item>.balignl</item>
50 <item>.balignw</item>
51 <item>.byte</item>
52 <item>.comm</item>
53 <item>.common.s</item>
54 <item>.common</item>
55 <item>.data</item>
56 <item>.dc.b</item>
57 <item>.dc.d</item>
58 <item>.dc.l</item>
59 <item>.dc.s</item>
60 <item>.dc.w</item>
61 <item>.dc.x</item>
62 <item>.dc</item>
63 <item>.dcb.b</item>
64 <item>.dcb.d</item>
65 <item>.dcb.l</item>
66 <item>.dcb.s</item>
67 <item>.dcb.w</item>
68 <item>.dcb.x</item>
69 <item>.dcb</item>
70 <item>.debug</item>
71 <item>.def</item>
72 <item>.desc</item>
73 <item>.dim</item>
74 <item>.double</item>
75 <item>.ds.b</item>
76 <item>.ds.d</item>
77 <item>.ds.l</item>
78 <item>.ds.p</item>
79 <item>.ds.s</item>
80 <item>.ds.w</item>
81 <item>.ds.x</item>
82 <item>.ds</item>
83 <item>.dsect</item>
84 <item>.eject</item>
85 <item>.else</item>
86 <item>.elsec</item>
87 <item>.elseif</item>
88 <item>.end</item>
89 <item>.endc</item>
90 <item>.endef</item>
91 <item>.endfunc</item>
92 <item>.endif</item>
93 <item>.endm</item>
94 <item>.endr</item>
95 <item>.equ</item>
96 <item>.equiv</item>
97 <item>.err</item>
98 <item>.exitm</item>
99 <item>.extend</item>
100 <item>.extern</item>
101 <item>.fail</item>
102 <item>.file</item>
103 <item>.fill</item>
104 <item>.float</item>
105 <item>.format</item>
106 <item>.func</item>
107 <item>.global</item>
108 <item>.globl</item>
109 <item>.hidden</item>
110 <item>.hword</item>
111 <item>.ident</item>
112 <item>.if</item>
113 <item>.ifc</item>
114 <item>.ifdef</item>
115 <item>.ifeq</item>
116 <item>.ifeqs</item>
117 <item>.ifge</item>
118 <item>.ifgt</item>
119 <item>.ifle</item>
120 <item>.iflt</item>
121 <item>.ifnc</item>
122 <item>.ifndef</item>
123 <item>.ifne</item>
124 <item>.ifnes</item>
125 <item>.ifnotdef</item>
126 <item>.include</item>
127 <item>.int</item>
128 <item>.internal</item>
129 <item>.irep</item>
130 <item>.irepc</item>
131 <item>.irp</item>
132 <item>.irpc</item>
133 <item>.lcomm</item>
134 <item>.lflags</item>
135 <item>.line</item>
136 <item>.linkonce</item>
137 <item>.list</item>
138 <item>.llen</item>
139 <item>.ln</item>
140 <item>.long</item>
141 <item>.lsym</item>
142 <item>.macro</item>
143 <item>.mexit</item>
144 <item>.name</item>
145 <item>.noformat</item>
146 <item>.nolist</item>
147 <item>.nopage</item>
148 <item>.octa</item>
149 <item>.offset</item>
150 <item>.org</item>
151 <item>.p2align</item>
152 <item>.p2alignl</item>
153 <item>.p2alignw</item>
154 <item>.page</item>
155 <item>.plen</item>
156 <item>.popsection</item>
157 <item>.previous</item>
158 <item>.print</item>
159 <item>.protected</item>
160 <item>.psize</item>
161 <item>.purgem</item>
162 <item>.pushsection</item>
163 <item>.quad</item>
164 <item>.rep</item>
165 <item>.rept</item>
166 <item>.rva</item>
167 <item>.sbttl</item>
168 <item>.scl</item>
169 <item>.sect.s</item>
170 <item>.sect</item>
171 <item>.section.s</item>
172 <item>.section</item>
173 <item>.set</item>
174 <item>.short</item>
175 <item>.single</item>
176 <item>.size</item>
177 <item>.skip</item>
178 <item>.sleb128</item>
179 <item>.space</item>
180 <item>.spc</item>
181 <item>.stabd</item>
182 <item>.stabn</item>
183 <item>.stabs</item>
184 <item>.string</item>
185 <item>.struct</item>
186 <item>.subsection</item>
187 <item>.symver</item>
188 <item>.tag</item>
189 <item>.text</item>
190 <item>.title</item>
191 <item>.ttl</item>
192 <item>.type</item>
193 <item>.uleb128</item>
194 <item>.use</item>
195 <item>.val</item>
196 <item>.version</item>
197 <item>.vtable_entry</item>
198 <item>.vtable_inherit</item>
199 <item>.weak</item>
200 <item>.word</item>
201 <item>.xcom</item>
202 <item>.xdef</item>
203 <item>.xref</item>
204 <item>.xstabs</item>
205 <item>.zero</item>
206 <!-- Directives specific to ARM -->
207 <item>.arm</item>
208 <item>.bss</item>
209 <item>.code</item>
210 <item>.even</item>
211 <item>.force_thumb</item>
212 <item>.ldouble</item>
213 <item>.loc</item>
214 <item>.ltorg</item>
215 <item>.packed</item>
216 <item>.pool</item>
217 <item>.req</item>
218 <item>.thumb</item>
219 <item>.thumb_func</item>
220 <item>.thumb_set</item>
221 </list>
222
223 <contexts>
224 <context attribute="0" lineEndContext="0">
225 <RegExpr attribute="1" context="0"
226 String="^\s*[A-Za-z0-9_.$]+:" />
227 <keyword attribute="2" context="0" String="keywords"
228 weakDelimiter="_.$" />
229 <HlCOct attribute="4" context="0" />
230 <HlCHex attribute="5" context="0" />
231 <RegExpr attribute="6" context="0" String="0[bB][01]+" />
232 <Int attribute="3" context="0" />
233 <RegExpr attribute="7" context="0"
234 String="0[fFeEdD][-+]?[0-9]*\.?[0-9]*[eE]?[-+]?[0-9]+" />
235 <RegExpr attribute="0" context="0"
236 String="[A-Za-z_.$][A-Za-z0-9_.$]*" />
237 <RegExpr attribute="8" context="0"
238 String="'(\\x[0-9a-fA-F][0-9a-fA-F]?|\\[0-7]?[0-7]?[0-7]?|\\.|.)" />
239 <DetectChar attribute="9" context="4" char="&quot;" />
240 <Detect2Chars attribute="12" context="1" char="/" char1="*" />
241 <DetectChar attribute="12" context="2" char="@" />
242 <DetectChar attribute="12" context="2" char=";" />
243 <AnyChar attribute="11" context="0"
244 String="!#%&amp;*()+,-&lt;=&gt;?/:[]^{|}~" />
245 <RegExpr attribute="13" context="3" String="^#" />
246 </context>
247 <context attribute="12" lineEndContext="1">
248 <Detect2Chars attribute="12" context="0" char="*" char1="/" />
249 </context>
250 <context attribute="12" lineEndContext="0" />
251 <context attribute="13" lineEndContext="0" />
252 <context attribute="9" lineEndContext="0">
253 <LineContinue attribute="9" context="5" />
254 <HlCStringChar attribute="10" context="4" />
255 <DetectChar attribute="9" context="0" char="&quot;" />
256 </context>
257 <context attribute="0" lineEndContext="4" />
258 </contexts>
259
260 <itemDatas>
261 <itemData name="Normal Text" defStyleNum="dsNormal" />
262 <itemData name="Label" defStyleNum="dsNormal" />
263 <itemData name="Keyword" defStyleNum="dsKeyword" />
264 <itemData name="Decimal" defStyleNum="dsDecVal" />
265 <itemData name="Octal" defStyleNum="dsBaseN" />
266 <itemData name="Hex" defStyleNum="dsBaseN" />
267 <itemData name="Binary" defStyleNum="dsBaseN" />
268 <itemData name="Float" defStyleNum="dsFloat" />
269 <itemData name="Char" defStyleNum="dsChar" />
270 <itemData name="String" defStyleNum="dsString" />
271 <itemData name="String Char" defStyleNum="dsChar" />
272 <itemData name="Symbol" defStyleNum="dsNormal" />
273 <itemData name="Comment" defStyleNum="dsComment" />
274 <itemData name="Preprocessor" defStyleNum="dsOthers" />
275 </itemDatas>
276 </highlighting>
277
278 <general>
279 <comments>
280 <comment name="singleLine" start=";" />
281 <comment name="singleLine" start="@" />
282 <comment name="multiLine" start="/*" end="*/" />
283 </comments>
284 <keywords casesensitive="1" weakDelimiter="_.$" />
285 </general>
286</language>