Source

gltut / Documents / Build / highlighting / delphi-hl.xml

Full commit
<?xml version="1.0" encoding="UTF-8"?>
<!--

Syntax highlighting definition for Delphi (also suitable for Pascal)

xslthl - XSLT Syntax Highlighting
http://sourceforge.net/projects/xslthl/
Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks

This software is provided 'as-is', without any express or implied
warranty.  In no event will the authors be held liable for any damages
arising from the use of this software.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not
   claim that you wrote the original software. If you use this software
   in a product, an acknowledgment in the product documentation would be
   appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
   misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.

Michal Molhanec <mol1111 at users.sourceforge.net>
Jirka Kosek <kosek at users.sourceforge.net>
Michiel Hendriks <elmuerte at users.sourceforge.net>

-->
<highlighters>
	<highlighter type="multiline-comment">
		<!-- multiline comments starting with an $ are directives -->
		<start>{$</start>
		<end>}</end>
		<style>directive</style>
	</highlighter>
	<highlighter type="multiline-comment">
		<!-- multiline comments starting with an $ are directives -->
		<start>(*$</start>
		<end>)</end>
		<style>directive</style>
	</highlighter>
	<highlighter type="multiline-comment">
		<start>{</start>
		<end>}</end>
	</highlighter>
	<highlighter type="multiline-comment">
		<start>(*</start>
		<end>*)</end>
	</highlighter>
	<highlighter type="oneline-comment">//</highlighter>
	<highlighter type="string">
		<string>'</string>
		<doubleEscapes />
	</highlighter>
	<highlighter type="hexnumber">
		<prefix>#$</prefix>
		<ignoreCase />
		<style>string</style>		
	</highlighter>
	<highlighter type="number">
		<prefix>#</prefix>
		<ignoreCase />
		<style>string</style>		
	</highlighter>
	<highlighter type="hexnumber">
		<prefix>$</prefix>
		<ignoreCase />
	</highlighter>
	<highlighter type="number">
		<point>.</point>
		<exponent>e</exponent>
		<ignoreCase />
	</highlighter>
	<highlighter type="keywords">
  		<!-- Reserved words -->
		<keyword>and</keyword>
		<keyword>else</keyword>
		<keyword>inherited</keyword>
		<keyword>packed</keyword>
		<keyword>then</keyword>
		<keyword>array</keyword>
		<keyword>end</keyword>
		<keyword>initialization</keyword>
		<keyword>procedure</keyword>
		<keyword>threadvar</keyword>
		<keyword>as</keyword>
		<keyword>except</keyword>
		<keyword>inline</keyword>
		<keyword>program</keyword>
		<keyword>to</keyword>
		<keyword>asm</keyword>
		<keyword>exports</keyword>
		<keyword>interface</keyword>
		<keyword>property</keyword>
		<keyword>try</keyword>
		<keyword>begin</keyword>
		<keyword>file</keyword>
		<keyword>is</keyword>
		<keyword>raise</keyword>
		<keyword>type</keyword>
		<keyword>case</keyword>
		<keyword>final</keyword>
		<keyword>label</keyword>
		<keyword>record</keyword>
		<keyword>unit</keyword>
		<keyword>class</keyword>
		<keyword>finalization</keyword>
		<keyword>library</keyword>
		<keyword>repeat</keyword>
		<keyword>unsafe</keyword>
		<keyword>const</keyword>
		<keyword>finally</keyword>
		<keyword>mod</keyword>
		<keyword>resourcestring</keyword>
		<keyword>until</keyword>
		<keyword>constructor</keyword>
		<keyword>for</keyword>
		<keyword>nil</keyword>
		<keyword>sealed</keyword>
		<keyword>uses</keyword>
		<keyword>destructor</keyword>
		<keyword>function</keyword>
		<keyword>not</keyword>
		<keyword>set</keyword>
		<keyword>var</keyword>
		<keyword>dispinterface</keyword>
		<keyword>goto</keyword>
		<keyword>object</keyword>
		<keyword>shl</keyword>
		<keyword>while</keyword>
		<keyword>div</keyword>
		<keyword>if</keyword>
		<keyword>of</keyword>
		<keyword>shr</keyword>
		<keyword>with</keyword>
		<keyword>do</keyword>
		<keyword>implementation</keyword>
		<keyword>or</keyword>
		<keyword>static</keyword>
		<keyword>xor</keyword>
		<keyword>downto</keyword>
		<keyword>in</keyword>
		<keyword>out</keyword>
		<keyword>string</keyword>

  		<!-- Special meaning -->
		<keyword>at</keyword>
		<keyword>on</keyword>
  
		<!-- Directives -->
		<keyword>absolute</keyword>
		<keyword>dynamic</keyword>
		<keyword>local</keyword>
		<keyword>platform</keyword>
		<keyword>requires</keyword>
		<keyword>abstract</keyword>
		<keyword>export</keyword>
		<keyword>message</keyword>
		<keyword>private</keyword>
		<keyword>resident</keyword>
		<keyword>assembler</keyword>
		<keyword>external</keyword>
		<keyword>name</keyword>
		<keyword>protected</keyword>
		<keyword>safecall</keyword>
		<keyword>automated</keyword>
		<keyword>far</keyword>
		<keyword>near</keyword>
		<keyword>public</keyword>
		<keyword>stdcall</keyword>
		<keyword>cdecl</keyword>
		<keyword>forward</keyword>
		<keyword>nodefault</keyword>
		<keyword>published</keyword>
		<keyword>stored</keyword>
		<keyword>contains</keyword>
		<keyword>implements</keyword>
		<keyword>overload</keyword>
		<keyword>read</keyword>
		<keyword>varargs</keyword>
		<keyword>default</keyword>
		<keyword>index</keyword>
		<keyword>override</keyword>
		<keyword>readonly</keyword>
		<keyword>virtual</keyword>
		<keyword>deprecated</keyword>
		<keyword>inline</keyword>
		<keyword>package</keyword>
		<keyword>register</keyword>
		<keyword>write</keyword>
		<keyword>dispid</keyword>
		<keyword>library</keyword>
		<keyword>pascal</keyword>
		<keyword>reintroduce</keyword>
		<keyword>writeonly</keyword>
		<ignoreCase />
	</highlighter>
</highlighters>