]> git.stg.codes - stg.git/blob - doc/xslt/highlighting/delphi-hl.xml
Ticket. The MaybeSet() function call for the 'change-policy' parameter added in
[stg.git] / doc / xslt / highlighting / delphi-hl.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!--\r
3 \r
4 Syntax highlighting definition for Delphi (also suitable for Pascal)\r
5 \r
6 xslthl - XSLT Syntax Highlighting\r
7 http://sourceforge.net/projects/xslthl/\r
8 Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks\r
9 \r
10 This software is provided 'as-is', without any express or implied\r
11 warranty.  In no event will the authors be held liable for any damages\r
12 arising from the use of this software.\r
13 \r
14 Permission is granted to anyone to use this software for any purpose,\r
15 including commercial applications, and to alter it and redistribute it\r
16 freely, subject to the following restrictions:\r
17 \r
18 1. The origin of this software must not be misrepresented; you must not\r
19    claim that you wrote the original software. If you use this software\r
20    in a product, an acknowledgment in the product documentation would be\r
21    appreciated but is not required.\r
22 2. Altered source versions must be plainly marked as such, and must not be\r
23    misrepresented as being the original software.\r
24 3. This notice may not be removed or altered from any source distribution.\r
25 \r
26 Michal Molhanec <mol1111 at users.sourceforge.net>\r
27 Jirka Kosek <kosek at users.sourceforge.net>\r
28 Michiel Hendriks <elmuerte at users.sourceforge.net>\r
29 \r
30 -->\r
31 <highlighters>\r
32         <highlighter type="multiline-comment">\r
33                 <!-- multiline comments starting with an $ are directives -->\r
34                 <start>{$</start>\r
35                 <end>}</end>\r
36                 <style>directive</style>\r
37         </highlighter>\r
38         <highlighter type="multiline-comment">\r
39                 <!-- multiline comments starting with an $ are directives -->\r
40                 <start>(*$</start>\r
41                 <end>)</end>\r
42                 <style>directive</style>\r
43         </highlighter>\r
44         <highlighter type="multiline-comment">\r
45                 <start>{</start>\r
46                 <end>}</end>\r
47         </highlighter>\r
48         <highlighter type="multiline-comment">\r
49                 <start>(*</start>\r
50                 <end>*)</end>\r
51         </highlighter>\r
52         <highlighter type="oneline-comment">//</highlighter>\r
53         <highlighter type="string">\r
54                 <string>'</string>\r
55                 <doubleEscapes />\r
56         </highlighter>\r
57         <highlighter type="hexnumber">\r
58                 <prefix>#$</prefix>\r
59                 <ignoreCase />\r
60                 <style>string</style>           \r
61         </highlighter>\r
62         <highlighter type="number">\r
63                 <prefix>#</prefix>\r
64                 <ignoreCase />\r
65                 <style>string</style>           \r
66         </highlighter>\r
67         <highlighter type="hexnumber">\r
68                 <prefix>$</prefix>\r
69                 <ignoreCase />\r
70         </highlighter>\r
71         <highlighter type="number">\r
72                 <point>.</point>\r
73                 <exponent>e</exponent>\r
74                 <ignoreCase />\r
75         </highlighter>\r
76         <highlighter type="keywords">\r
77                 <!-- Reserved words -->\r
78                 <keyword>and</keyword>\r
79                 <keyword>else</keyword>\r
80                 <keyword>inherited</keyword>\r
81                 <keyword>packed</keyword>\r
82                 <keyword>then</keyword>\r
83                 <keyword>array</keyword>\r
84                 <keyword>end</keyword>\r
85                 <keyword>initialization</keyword>\r
86                 <keyword>procedure</keyword>\r
87                 <keyword>threadvar</keyword>\r
88                 <keyword>as</keyword>\r
89                 <keyword>except</keyword>\r
90                 <keyword>inline</keyword>\r
91                 <keyword>program</keyword>\r
92                 <keyword>to</keyword>\r
93                 <keyword>asm</keyword>\r
94                 <keyword>exports</keyword>\r
95                 <keyword>interface</keyword>\r
96                 <keyword>property</keyword>\r
97                 <keyword>try</keyword>\r
98                 <keyword>begin</keyword>\r
99                 <keyword>file</keyword>\r
100                 <keyword>is</keyword>\r
101                 <keyword>raise</keyword>\r
102                 <keyword>type</keyword>\r
103                 <keyword>case</keyword>\r
104                 <keyword>final</keyword>\r
105                 <keyword>label</keyword>\r
106                 <keyword>record</keyword>\r
107                 <keyword>unit</keyword>\r
108                 <keyword>class</keyword>\r
109                 <keyword>finalization</keyword>\r
110                 <keyword>library</keyword>\r
111                 <keyword>repeat</keyword>\r
112                 <keyword>unsafe</keyword>\r
113                 <keyword>const</keyword>\r
114                 <keyword>finally</keyword>\r
115                 <keyword>mod</keyword>\r
116                 <keyword>resourcestring</keyword>\r
117                 <keyword>until</keyword>\r
118                 <keyword>constructor</keyword>\r
119                 <keyword>for</keyword>\r
120                 <keyword>nil</keyword>\r
121                 <keyword>sealed</keyword>\r
122                 <keyword>uses</keyword>\r
123                 <keyword>destructor</keyword>\r
124                 <keyword>function</keyword>\r
125                 <keyword>not</keyword>\r
126                 <keyword>set</keyword>\r
127                 <keyword>var</keyword>\r
128                 <keyword>dispinterface</keyword>\r
129                 <keyword>goto</keyword>\r
130                 <keyword>object</keyword>\r
131                 <keyword>shl</keyword>\r
132                 <keyword>while</keyword>\r
133                 <keyword>div</keyword>\r
134                 <keyword>if</keyword>\r
135                 <keyword>of</keyword>\r
136                 <keyword>shr</keyword>\r
137                 <keyword>with</keyword>\r
138                 <keyword>do</keyword>\r
139                 <keyword>implementation</keyword>\r
140                 <keyword>or</keyword>\r
141                 <keyword>static</keyword>\r
142                 <keyword>xor</keyword>\r
143                 <keyword>downto</keyword>\r
144                 <keyword>in</keyword>\r
145                 <keyword>out</keyword>\r
146                 <keyword>string</keyword>\r
147 \r
148                 <!-- Special meaning -->\r
149                 <keyword>at</keyword>\r
150                 <keyword>on</keyword>\r
151   \r
152                 <!-- Directives -->\r
153                 <keyword>absolute</keyword>\r
154                 <keyword>dynamic</keyword>\r
155                 <keyword>local</keyword>\r
156                 <keyword>platform</keyword>\r
157                 <keyword>requires</keyword>\r
158                 <keyword>abstract</keyword>\r
159                 <keyword>export</keyword>\r
160                 <keyword>message</keyword>\r
161                 <keyword>private</keyword>\r
162                 <keyword>resident</keyword>\r
163                 <keyword>assembler</keyword>\r
164                 <keyword>external</keyword>\r
165                 <keyword>name</keyword>\r
166                 <keyword>protected</keyword>\r
167                 <keyword>safecall</keyword>\r
168                 <keyword>automated</keyword>\r
169                 <keyword>far</keyword>\r
170                 <keyword>near</keyword>\r
171                 <keyword>public</keyword>\r
172                 <keyword>stdcall</keyword>\r
173                 <keyword>cdecl</keyword>\r
174                 <keyword>forward</keyword>\r
175                 <keyword>nodefault</keyword>\r
176                 <keyword>published</keyword>\r
177                 <keyword>stored</keyword>\r
178                 <keyword>contains</keyword>\r
179                 <keyword>implements</keyword>\r
180                 <keyword>overload</keyword>\r
181                 <keyword>read</keyword>\r
182                 <keyword>varargs</keyword>\r
183                 <keyword>default</keyword>\r
184                 <keyword>index</keyword>\r
185                 <keyword>override</keyword>\r
186                 <keyword>readonly</keyword>\r
187                 <keyword>virtual</keyword>\r
188                 <keyword>deprecated</keyword>\r
189                 <keyword>inline</keyword>\r
190                 <keyword>package</keyword>\r
191                 <keyword>register</keyword>\r
192                 <keyword>write</keyword>\r
193                 <keyword>dispid</keyword>\r
194                 <keyword>library</keyword>\r
195                 <keyword>pascal</keyword>\r
196                 <keyword>reintroduce</keyword>\r
197                 <keyword>writeonly</keyword>\r
198                 <ignoreCase />\r
199         </highlighter>\r
200 </highlighters>