PageRenderTime 163ms CodeModel.GetById 141ms app.highlight 4ms RepoModel.GetById 16ms app.codeStats 0ms

/jEdit/tags/jedit-4-0-pre3/modes/pascal.xml

#
XML | 174 lines | 151 code | 13 blank | 10 comment | 0 complexity | bb09016e06aadd81b7a0ce19a07695f9 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<MODE>
  8	<PROPS>
  9		<PROPERTY NAME="commentStart" VALUE="{" />
 10		<PROPERTY NAME="commentEnd" VALUE="}" />
 11		<PROPERTY NAME="lineComment" VALUE="//" />
 12	</PROPS>
 13
 14	<RULES IGNORE_CASE="TRUE" HIGHLIGHT_DIGITS="TRUE">
 15		<WHITESPACE> </WHITESPACE>
 16		<WHITESPACE>	</WHITESPACE>
 17
 18		<!-- Compiler directives. -->
 19		<SPAN TYPE="COMMENT2">
 20			<BEGIN>{$</BEGIN>
 21			<END>}</END>
 22		</SPAN>
 23		<SPAN TYPE="COMMENT2">
 24			<BEGIN>(*$</BEGIN>
 25			<END>*)</END>
 26		</SPAN>
 27
 28		<!-- Normal comments. -->
 29		<SPAN TYPE="COMMENT1">
 30			<BEGIN>{</BEGIN>
 31			<END>}</END>
 32		</SPAN>
 33
 34		<SPAN TYPE="COMMENT1">
 35			<BEGIN>(*</BEGIN>
 36			<END>*)</END>
 37		</SPAN>
 38
 39		<EOL_SPAN TYPE="COMMENT1">//</EOL_SPAN>
 40
 41		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 42			<BEGIN>'</BEGIN>
 43			<END>'</END>
 44		</SPAN>
 45
 46		<SEQ TYPE="NULL">)</SEQ>
 47		<SEQ TYPE="NULL">(</SEQ>
 48		<SEQ TYPE="NULL">]</SEQ>
 49		<SEQ TYPE="NULL">[</SEQ>
 50		<SEQ TYPE="NULL">.</SEQ>
 51		<SEQ TYPE="NULL">,</SEQ>
 52		<SEQ TYPE="NULL">;</SEQ>
 53		<SEQ TYPE="OPERATOR">^</SEQ>
 54		<SEQ TYPE="OPERATOR">@</SEQ>
 55		<SEQ TYPE="OPERATOR">:=</SEQ>
 56		<SEQ TYPE="NULL">:</SEQ>
 57		<SEQ TYPE="OPERATOR">=</SEQ>
 58		<SEQ TYPE="OPERATOR">&lt;&gt;</SEQ>
 59		<SEQ TYPE="OPERATOR">&gt;</SEQ>
 60		<SEQ TYPE="OPERATOR">&lt;</SEQ>
 61		<SEQ TYPE="OPERATOR">&gt;=</SEQ>
 62		<SEQ TYPE="OPERATOR">&lt;=</SEQ>
 63		<SEQ TYPE="OPERATOR">+</SEQ>
 64		<SEQ TYPE="OPERATOR">-</SEQ>
 65		<SEQ TYPE="OPERATOR">/</SEQ>
 66		<SEQ TYPE="OPERATOR">*</SEQ>
 67
 68		<KEYWORDS IGNORE_CASE="TRUE">
 69			<!-- Reserved words. Standard directives are not included, except
 70			  -- private, protected, public, published, and automated. -->
 71			<KEYWORD1>and</KEYWORD1>
 72			<KEYWORD1>array</KEYWORD1>
 73			<KEYWORD1>as</KEYWORD1>
 74			<KEYWORD1>asm</KEYWORD1>
 75			<KEYWORD1>automated</KEYWORD1>
 76			<KEYWORD1>begin</KEYWORD1>
 77			<KEYWORD1>case</KEYWORD1>
 78			<KEYWORD1>class</KEYWORD1>
 79			<KEYWORD1>const</KEYWORD1>
 80			<KEYWORD1>constructor</KEYWORD1>
 81			<KEYWORD1>destructor</KEYWORD1>
 82			<KEYWORD1>dispinterface</KEYWORD1>
 83			<KEYWORD1>div</KEYWORD1>
 84			<KEYWORD1>do</KEYWORD1>
 85			<KEYWORD1>downto</KEYWORD1>
 86			<KEYWORD1>else</KEYWORD1>
 87			<KEYWORD1>end</KEYWORD1>
 88			<KEYWORD1>except</KEYWORD1>
 89			<KEYWORD1>exports</KEYWORD1>
 90			<KEYWORD1>file</KEYWORD1>
 91			<KEYWORD1>finally</KEYWORD1>
 92			<KEYWORD1>for</KEYWORD1>
 93			<KEYWORD1>function</KEYWORD1>
 94			<KEYWORD1>goto</KEYWORD1>
 95			<KEYWORD1>if</KEYWORD1>
 96			<KEYWORD1>in</KEYWORD1>
 97			<KEYWORD1>inherited</KEYWORD1>
 98			<KEYWORD1>inline</KEYWORD1>
 99			<KEYWORD1>is</KEYWORD1>
100			<KEYWORD1>label</KEYWORD1>
101			<KEYWORD1>mod</KEYWORD1>
102			<KEYWORD1>nil</KEYWORD1>
103			<KEYWORD1>not</KEYWORD1>
104			<KEYWORD1>object</KEYWORD1>
105			<KEYWORD1>of</KEYWORD1>
106			<KEYWORD1>or</KEYWORD1>
107			<KEYWORD1>out</KEYWORD1>
108			<KEYWORD1>packed</KEYWORD1>
109			<KEYWORD1>private</KEYWORD1>
110			<KEYWORD1>procedure</KEYWORD1>
111			<KEYWORD1>property</KEYWORD1>
112			<KEYWORD1>protected</KEYWORD1>
113			<KEYWORD1>public</KEYWORD1>
114			<KEYWORD1>published</KEYWORD1>
115			<KEYWORD1>raise</KEYWORD1>
116			<KEYWORD1>record</KEYWORD1>
117			<KEYWORD1>repeat</KEYWORD1>
118			<KEYWORD1>resourcestring</KEYWORD1>
119			<KEYWORD1>set</KEYWORD1>
120			<KEYWORD1>shl</KEYWORD1>
121			<KEYWORD1>shr</KEYWORD1>
122			<KEYWORD1>string</KEYWORD1>
123			<KEYWORD1>stringresource</KEYWORD1>
124			<KEYWORD1>then</KEYWORD1>
125			<KEYWORD1>threadvar</KEYWORD1>
126			<KEYWORD1>to</KEYWORD1>
127			<KEYWORD1>try</KEYWORD1>
128			<KEYWORD1>type</KEYWORD1>
129			<KEYWORD1>until</KEYWORD1>
130			<KEYWORD1>var</KEYWORD1>
131			<KEYWORD1>while</KEYWORD1>
132			<KEYWORD1>with</KEYWORD1>
133			<KEYWORD1>xor</KEYWORD1>
134
135			<KEYWORD2>finalization</KEYWORD2>
136			<KEYWORD2>implementation</KEYWORD2>
137			<KEYWORD2>interface</KEYWORD2>
138			<KEYWORD2>initialization</KEYWORD2>
139			<KEYWORD2>library</KEYWORD2>
140			<KEYWORD2>program</KEYWORD2>
141			<KEYWORD2>unit</KEYWORD2>
142			<KEYWORD2>uses</KEYWORD2>
143
144			<!-- Ordinal types. -->
145			<KEYWORD3>shortint</KEYWORD3>
146			<KEYWORD3>byte</KEYWORD3>
147			<KEYWORD3>char</KEYWORD3>
148			<KEYWORD3>smallint</KEYWORD3>
149			<KEYWORD3>integer</KEYWORD3>
150			<KEYWORD3>word</KEYWORD3>
151			<KEYWORD3>longint</KEYWORD3>
152			<KEYWORD3>cardinal</KEYWORD3>
153			<!-- Boolean types. -->
154			<KEYWORD3>boolean</KEYWORD3>
155			<KEYWORD3>bytebool</KEYWORD3>
156			<KEYWORD3>wordbool</KEYWORD3>
157			<KEYWORD3>longbool</KEYWORD3>
158			<!-- Real types. -->
159			<KEYWORD3>real</KEYWORD3>
160			<KEYWORD3>single</KEYWORD3>
161			<KEYWORD3>double</KEYWORD3>
162			<KEYWORD3>extended</KEYWORD3>
163			<KEYWORD3>comp</KEYWORD3>
164			<KEYWORD3>currency</KEYWORD3>
165			<!-- Untyped pointer. -->
166			<KEYWORD3>pointer</KEYWORD3>
167
168			<LITERAL2>false</LITERAL2>
169			<LITERAL2>nil</LITERAL2>
170			<LITERAL2>self</LITERAL2>
171			<LITERAL2>true</LITERAL2>
172		</KEYWORDS>
173	</RULES>
174</MODE>