PageRenderTime 68ms CodeModel.GetById 62ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre4/modes/pascal.xml

#
XML | 210 lines | 183 code | 12 blank | 15 comment | 0 complexity | 48d7855d2999e1d5694ad6a4b1f23d5f MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!DOCTYPE MODE SYSTEM "xmode.dtd">
  4
  5<!-- Pascal mode by Kristian Ovaska.
  6     Delphi 3 was used as reference.
  7     Modified by Barry Carr (Ixian Software Components Ltd)
  8     Delphi 6 was used as reference.
  9     Keywords   = KEYWORD1
 10     Directives = KEYWORD2.
 11     Everything else as is-->
 12<MODE>
 13    <PROPS>
 14        <PROPERTY NAME="commentStart" VALUE="{" />
 15        <PROPERTY NAME="commentEnd" VALUE="}" />
 16        <PROPERTY NAME="lineComment" VALUE="//" />
 17    </PROPS>
 18
 19    <RULES IGNORE_CASE="TRUE" HIGHLIGHT_DIGITS="TRUE">
 20        <!-- Compiler directives. -->
 21        <SPAN TYPE="COMMENT3">
 22            <BEGIN>{$</BEGIN>
 23            <END>}</END>
 24        </SPAN>
 25        <SPAN TYPE="COMMENT3">
 26            <BEGIN>(*$</BEGIN>
 27            <END>*)</END>
 28        </SPAN>
 29
 30        <!-- Normal comments. -->
 31        <SPAN TYPE="COMMENT1">
 32            <BEGIN>{</BEGIN>
 33            <END>}</END>
 34        </SPAN>
 35
 36        <SPAN TYPE="COMMENT1">
 37            <BEGIN>(*</BEGIN>
 38            <END>*)</END>
 39        </SPAN>
 40
 41        <EOL_SPAN TYPE="COMMENT2">//</EOL_SPAN>
 42
 43        <SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 44            <BEGIN>'</BEGIN>
 45            <END>'</END>
 46        </SPAN>
 47
 48        <SEQ TYPE="OPERATOR">)</SEQ>
 49        <SEQ TYPE="OPERATOR">(</SEQ>
 50        <SEQ TYPE="OPERATOR">]</SEQ>
 51        <SEQ TYPE="OPERATOR">[</SEQ>
 52        <SEQ TYPE="OPERATOR">.</SEQ>
 53        <SEQ TYPE="OPERATOR">,</SEQ>
 54        <SEQ TYPE="OPERATOR">;</SEQ>
 55        <SEQ TYPE="OPERATOR">^</SEQ>
 56        <SEQ TYPE="OPERATOR">@</SEQ>
 57        <SEQ TYPE="OPERATOR">:=</SEQ>
 58        <SEQ TYPE="OPERATOR">:</SEQ>
 59        <SEQ TYPE="OPERATOR">=</SEQ>
 60        <SEQ TYPE="OPERATOR">&lt;&gt;</SEQ>
 61        <SEQ TYPE="OPERATOR">&gt;</SEQ>
 62        <SEQ TYPE="OPERATOR">&lt;</SEQ>
 63        <SEQ TYPE="OPERATOR">&gt;=</SEQ>
 64        <SEQ TYPE="OPERATOR">&lt;=</SEQ>
 65        <SEQ TYPE="OPERATOR">+</SEQ>
 66        <SEQ TYPE="OPERATOR">-</SEQ>
 67        <SEQ TYPE="OPERATOR">/</SEQ>
 68        <SEQ TYPE="OPERATOR">*</SEQ>
 69
 70        <KEYWORDS>
 71            <!-- Reserved words. Standard directives are not included, except
 72                 private, protected, public, published, and automated. -->
 73            <KEYWORD1>and</KEYWORD1>
 74            <KEYWORD1>array</KEYWORD1>
 75            <KEYWORD1>as</KEYWORD1>
 76            <KEYWORD1>asm</KEYWORD1>
 77            <KEYWORD1>begin</KEYWORD1>
 78            <KEYWORD1>case</KEYWORD1>
 79            <KEYWORD1>class</KEYWORD1>
 80            <KEYWORD1>const</KEYWORD1>
 81            <KEYWORD1>constructor</KEYWORD1>
 82            <KEYWORD1>destructor</KEYWORD1>
 83            <KEYWORD1>dispinterface</KEYWORD1>
 84            <KEYWORD1>div</KEYWORD1>
 85            <KEYWORD1>do</KEYWORD1>
 86            <KEYWORD1>downto</KEYWORD1>
 87            <KEYWORD1>else</KEYWORD1>
 88            <KEYWORD1>end</KEYWORD1>
 89            <KEYWORD1>except</KEYWORD1>
 90            <KEYWORD1>exports</KEYWORD1>
 91            <KEYWORD1>file</KEYWORD1>
 92            <KEYWORD1>finalization</KEYWORD1>
 93            <KEYWORD1>finally</KEYWORD1>
 94            <KEYWORD1>for</KEYWORD1>
 95            <KEYWORD1>function</KEYWORD1>
 96            <KEYWORD1>goto</KEYWORD1>
 97            <KEYWORD1>if</KEYWORD1>
 98            <KEYWORD1>implementation</KEYWORD1>
 99            <KEYWORD1>in</KEYWORD1>
100            <KEYWORD1>inherited</KEYWORD1>
101            <KEYWORD1>initialization</KEYWORD1>
102            <KEYWORD1>inline</KEYWORD1>
103            <KEYWORD1>interface</KEYWORD1>
104            <KEYWORD1>is</KEYWORD1>
105            <KEYWORD1>label</KEYWORD1>
106            <KEYWORD1>library</KEYWORD1>
107            <KEYWORD1>mod</KEYWORD1>
108            <KEYWORD1>not</KEYWORD1>
109            <KEYWORD1>object</KEYWORD1>
110            <KEYWORD1>of</KEYWORD1>
111            <KEYWORD1>on</KEYWORD1>
112            <KEYWORD1>or</KEYWORD1>
113            <KEYWORD1>out</KEYWORD1>
114            <KEYWORD1>packed</KEYWORD1>
115            <KEYWORD1>procedure</KEYWORD1>
116            <KEYWORD1>program</KEYWORD1>
117            <KEYWORD1>property</KEYWORD1>
118            <KEYWORD1>raise</KEYWORD1>
119            <KEYWORD1>record</KEYWORD1>
120            <KEYWORD1>repeat</KEYWORD1>
121            <KEYWORD1>resourcestring</KEYWORD1>
122            <KEYWORD1>set</KEYWORD1>
123            <KEYWORD1>shl</KEYWORD1>
124            <KEYWORD1>shr</KEYWORD1>
125            <KEYWORD1>string</KEYWORD1>
126            <KEYWORD1>then</KEYWORD1>
127            <KEYWORD1>threadvar</KEYWORD1>
128            <KEYWORD1>to</KEYWORD1>
129            <KEYWORD1>try</KEYWORD1>
130            <KEYWORD1>type</KEYWORD1>
131            <KEYWORD1>unit</KEYWORD1>
132            <KEYWORD1>until</KEYWORD1>
133            <KEYWORD1>uses</KEYWORD1>
134            <KEYWORD1>var</KEYWORD1>
135            <KEYWORD1>while</KEYWORD1>
136            <KEYWORD1>with</KEYWORD1>
137            <KEYWORD1>xor</KEYWORD1>
138
139            <KEYWORD2>absolute</KEYWORD2>
140            <KEYWORD2>abstract</KEYWORD2>
141            <KEYWORD2>automated</KEYWORD2>
142            <KEYWORD2>cdecl</KEYWORD2>
143            <KEYWORD2>contains</KEYWORD2>
144            <KEYWORD2>default</KEYWORD2>
145            <KEYWORD2>deprecated</KEYWORD2>
146            <KEYWORD2>dispid</KEYWORD2>
147            <KEYWORD2>dynamic</KEYWORD2>
148            <KEYWORD2>export</KEYWORD2>
149            <KEYWORD2>external</KEYWORD2>
150            <KEYWORD2>far</KEYWORD2>
151            <KEYWORD2>forward</KEYWORD2>
152            <KEYWORD2>implements</KEYWORD2>
153            <KEYWORD2>index</KEYWORD2>
154            <KEYWORD2>message</KEYWORD2>
155            <KEYWORD2>name</KEYWORD2>
156            <KEYWORD2>near</KEYWORD2>
157            <KEYWORD2>nodefault</KEYWORD2>
158            <KEYWORD2>overload</KEYWORD2>
159            <KEYWORD2>override</KEYWORD2>
160            <KEYWORD2>package</KEYWORD2>
161            <KEYWORD2>pascal</KEYWORD2>
162            <KEYWORD2>platform</KEYWORD2>
163            <KEYWORD2>private</KEYWORD2>
164            <KEYWORD2>protected</KEYWORD2>
165            <KEYWORD2>public</KEYWORD2>
166            <KEYWORD2>published</KEYWORD2>
167            <KEYWORD2>read</KEYWORD2>
168            <KEYWORD2>readonly</KEYWORD2>
169            <KEYWORD2>register</KEYWORD2>
170            <KEYWORD2>reintroduce</KEYWORD2>
171            <KEYWORD2>requires</KEYWORD2>
172            <KEYWORD2>resident</KEYWORD2>
173            <KEYWORD2>safecall</KEYWORD2>
174            <KEYWORD2>stdcall</KEYWORD2>
175            <KEYWORD2>stored</KEYWORD2>
176            <KEYWORD2>virtual</KEYWORD2>
177            <KEYWORD2>write</KEYWORD2>
178            <KEYWORD2>writeonly</KEYWORD2>
179
180            <!-- Ordinal types. -->
181            <KEYWORD3>shortint</KEYWORD3>
182            <KEYWORD3>byte</KEYWORD3>
183            <KEYWORD3>char</KEYWORD3>
184            <KEYWORD3>smallint</KEYWORD3>
185            <KEYWORD3>integer</KEYWORD3>
186            <KEYWORD3>word</KEYWORD3>
187            <KEYWORD3>longint</KEYWORD3>
188            <KEYWORD3>cardinal</KEYWORD3>
189            <!-- Boolean types. -->
190            <KEYWORD3>boolean</KEYWORD3>
191            <KEYWORD3>bytebool</KEYWORD3>
192            <KEYWORD3>wordbool</KEYWORD3>
193            <KEYWORD3>longbool</KEYWORD3>
194            <!-- Real types. -->
195            <KEYWORD3>real</KEYWORD3>
196            <KEYWORD3>single</KEYWORD3>
197            <KEYWORD3>double</KEYWORD3>
198            <KEYWORD3>extended</KEYWORD3>
199            <KEYWORD3>comp</KEYWORD3>
200            <KEYWORD3>currency</KEYWORD3>
201            <!-- Untyped pointer. -->
202            <KEYWORD3>pointer</KEYWORD3>
203
204            <LITERAL2>false</LITERAL2>
205            <LITERAL2>nil</LITERAL2>
206            <LITERAL2>self</LITERAL2>
207            <LITERAL2>true</LITERAL2>
208        </KEYWORDS>
209    </RULES>
210</MODE>