Source for file delphi.php

Documentation is available at delphi.php


1 <?php
2 /***********************************************************************************
3 * delphi.php
4 * ----------
5 * Author: Járja Norbert (jnorbi@vipmail.hu)
6 * Copyright: (c) 2004 Járja Norbert, Nigel McNie (http://qbnz.com/highlighter)
7 * Release Version: 1.0.7.1
8 * CVS Revision Version: $Revision: 1.1 $
9 * Date Started: 2004/07/26
10 * Last Modified: $Date: 2005/06/02 04:57:18 $
11 *
12 * Delphi (Object Pascal) language file for GeSHi.
13 *
14 * CHANGES
15 * -------
16 * 2004/11/27 (1.0.1)
17 * - Added support for multiple object splitters
18 * 2004/10/27 (1.0.0)
19 * - First Release
20 *
21 * TODO (updated 2004/11/27)
22 * -------------------------
23 *
24 ************************************************************************************
25 *
26 * This file is part of GeSHi.
27 *
28 * GeSHi is free software; you can redistribute it and/or modify
29 * it under the terms of the GNU General Public License as published by
30 * the Free Software Foundation; either version 2 of the License, or
31 * (at your option) any later version.
32 *
33 * GeSHi is distributed in the hope that it will be useful,
34 * but WITHOUT ANY WARRANTY; without even the implied warranty of
35 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36 * GNU General Public License for more details.
37 *
38 * You should have received a copy of the GNU General Public License
39 * along with GeSHi; if not, write to the Free Software
40 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
41 *
42 ************************************************************************************/
42
43
44 $language_data = array (
45 'LANG_NAME' => 'Delphi',
46 'COMMENT_SINGLE' => array(1 => '//'),
47 'COMMENT_MULTI' => array('(*' => '*)', '{' => '}'),
48 'CASE_KEYWORDS' => 0,
49 'QUOTEMARKS' => array("'", '"'),
50 'ESCAPE_CHAR' => '',
51 'KEYWORDS' => array(
52 1 => array(
53 'And', 'Array', 'As', 'Begin', 'Case', 'Class', 'Constructor', 'Destructor', 'Div', 'Do', 'DownTo', 'Else',
54 'End', 'Except', 'File', 'Finally', 'For', 'Function', 'Goto', 'If', 'Implementation', 'In', 'Inherited', 'Interface',
55 'Is', 'Mod', 'Not', 'Object', 'Of', 'On', 'Or', 'Packed', 'Procedure', 'Program', 'Property', 'Raise', 'Record',
56 'Repeat', 'Set', 'Shl', 'Shr', 'Then', 'ThreadVar', 'To', 'Try', 'Unit', 'Until', 'Uses', 'While', 'With', 'Xor'
57 ),
58 2 => array(
59 'nil', 'false', 'true', 'var', 'type', 'const'
60 ),
61 3 => array(
62 'Abs', 'Addr', 'AnsiCompareStr', 'AnsiCompareText', 'AnsiContainsStr', 'AnsiEndsStr', 'AnsiIndexStr', 'AnsiLeftStr',
63 'AnsiLowerCase', 'AnsiMatchStr', 'AnsiMidStr', 'AnsiPos', 'AnsiReplaceStr', 'AnsiReverseString', 'AnsiRightStr',
64 'AnsiStartsStr', 'AnsiUpperCase', 'ArcCos', 'ArcSin', 'ArcTan', 'Assigned', 'BeginThread', 'Bounds', 'CelsiusToFahrenheit',
65 'ChangeFileExt', 'Chr', 'CompareStr', 'CompareText', 'Concat', 'Convert', 'Copy', 'Cos', 'CreateDir', 'CurrToStr',
66 'CurrToStrF', 'Date', 'DateTimeToFileDate', 'DateTimeToStr', 'DateToStr', 'DayOfTheMonth', 'DayOfTheWeek', 'DayOfTheYear',
67 'DayOfWeek', 'DaysBetween', 'DaysInAMonth', 'DaysInAYear', 'DaySpan', 'DegToRad', 'DeleteFile', 'DiskFree', 'DiskSize',
68 'DupeString', 'EncodeDate', 'EncodeDateTime', 'EncodeTime', 'EndOfADay', 'EndOfAMonth', 'Eof', 'Eoln', 'Exp', 'ExtractFileDir',
69 'ExtractFileDrive', 'ExtractFileExt', 'ExtractFileName', 'ExtractFilePath', 'FahrenheitToCelsius', 'FileAge',
70 'FileDateToDateTime', 'FileExists', 'FilePos', 'FileSearch', 'FileSetDate', 'FileSize', 'FindClose', 'FindCmdLineSwitch',
71 'FindFirst', 'FindNext', 'FloatToStr', 'FloatToStrF', 'Format', 'FormatCurr', 'FormatDateTime', 'FormatFloat', 'Frac',
72 'GetCurrentDir', 'GetLastError', 'GetMem', 'High', 'IncDay', 'IncMinute', 'IncMonth', 'IncYear', 'InputBox',
73 'InputQuery', 'Int', 'IntToHex', 'IntToStr', 'IOResult', 'IsInfinite', 'IsLeapYear', 'IsMultiThread', 'IsNaN',
74 'LastDelimiter', 'Length', 'Ln', 'Lo', 'Log10', 'Low', 'LowerCase', 'Max', 'Mean', 'MessageDlg', 'MessageDlgPos',
75 'MonthOfTheYear', 'Now', 'Odd', 'Ord', 'ParamCount', 'ParamStr', 'Pi', 'Point', 'PointsEqual', 'Pos', 'Pred',
76 'Printer', 'PromptForFileName', 'PtInRect', 'RadToDeg', 'Random', 'RandomRange', 'RecodeDate', 'RecodeTime', 'Rect',
77 'RemoveDir', 'RenameFile', 'Round', 'SeekEof', 'SeekEoln', 'SelectDirectory', 'SetCurrentDir', 'Sin', 'SizeOf',
78 'Slice', 'Sqr', 'Sqrt', 'StringOfChar', 'StringReplace', 'StringToWideChar', 'StrToCurr', 'StrToDate', 'StrToDateTime',
79 'StrToFloat', 'StrToInt', 'StrToInt64', 'StrToInt64Def', 'StrToIntDef', 'StrToTime', 'StuffString', 'Succ', 'Sum', 'Tan',
80 'Time', 'TimeToStr', 'Tomorrow', 'Trunc', 'UpCase', 'UpperCase', 'VarType', 'WideCharToString', 'WrapText', 'Yesterday',
81
82 'Append', 'AppendStr', 'Assign', 'AssignFile', 'AssignPrn', 'Beep', 'BlockRead', 'BlockWrite', 'Break',
83 'ChDir', 'Close', 'CloseFile', 'Continue', 'DateTimeToString', 'Dec', 'DecodeDate', 'DecodeDateTime',
84 'DecodeTime', 'Delete', 'Dispose', 'EndThread', 'Erase', 'Exclude', 'Exit', 'FillChar', 'Flush', 'FreeAndNil',
85 'FreeMem', 'GetDir', 'GetLocaleFormatSettings', 'Halt', 'Inc', 'Include', 'Insert', 'MkDir', 'Move', 'New',
86 'ProcessPath', 'Randomize', 'Read', 'ReadLn', 'ReallocMem', 'Rename', 'ReplaceDate', 'ReplaceTime',
87 'Reset', 'ReWrite', 'RmDir', 'RunError', 'Seek', 'SetLength', 'SetString', 'ShowMessage', 'ShowMessageFmt',
88 'ShowMessagePos', 'Str', 'Truncate', 'Val', 'Write', 'WriteLn'
89 ),
90 4 => array(
91 'AnsiChar', 'AnsiString', 'Boolean', 'Byte', 'Cardinal', 'Char', 'Comp', 'Currency', 'Double', 'Extended',
92 'Int64', 'Integer', 'LongInt', 'LongWord', 'PAnsiChar', 'PAnsiString', 'PChar', 'PCurrency', 'PDateTime',
93 'PExtended', 'PInt64', 'Pointer', 'PShortString', 'PString', 'PVariant', 'PWideChar', 'PWideString',
94 'Real', 'Real48', 'ShortInt', 'ShortString', 'Single', 'SmallInt', 'String', 'TBits', 'TConvType', 'TDateTime',
95 'Text', 'TextFile', 'TFloatFormat', 'TFormatSettings', 'TList', 'TObject', 'TOpenDialog', 'TPoint',
96 'TPrintDialog', 'TRect', 'TReplaceFlags', 'TSaveDialog', 'TSearchRec', 'TStringList', 'TSysCharSet',
97 'TThreadFunc', 'Variant', 'WideChar', 'WideString', 'Word'
98 ),
99 ),
100 'CASE_SENSITIVE' => array(
101 GESHI_COMMENTS => true,
102 1 => false,
103 2 => false,
104 3 => false,
105 4 => false,
106 ),
107 'STYLES' => array(
108 'KEYWORDS' => array(
109 1 => 'color: #000000; font-weight: bold;',
110 2 => 'color: #000000; font-weight: bold;',
111 3 => 'color: #000066;',
112 4 => 'color: #993333;'
113 ),
114 'COMMENTS' => array(
115 1 => 'color: #808080; font-style: italic;',
116 'MULTI' => 'color: #808080; font-style: italic;'
117 ),
118 'ESCAPE_CHAR' => array(
119 ),
120 'BRACKETS' => array(
121 0 => 'color: #66cc66;'
122 ),
123 'STRINGS' => array(
124 0 => 'color: #ff0000;'
125 ),
126 'NUMBERS' => array(
127 0 => 'color: #cc66cc;'
128 ),
129 'METHODS' => array(
130 1 => 'color: #006600;'
131 ),
132 'REGEXPS' => array(
133 ),
134 'SYMBOLS' => array(
135 0 => 'color: #66cc66;'
136 ),
137 'SCRIPT' => array(
138 )
139 ),
140 'URLS' => array(
141 1 => '',
142 2 => '',
143 3 => '',
144 4 => ''
145 ),
146 'OOLANG' => true,
147 'OBJECT_SPLITTERS' => array(
148 1 => '.'
149 ),
150 'REGEXPS' => array(
151 ),
152 'STRICT_MODE_APPLIES' => GESHI_NEVER,
153 'SCRIPT_DELIMITERS' => array(
154 ),
155 'HIGHLIGHT_STRICT_BLOCK' => array(
156 )
157 );
158
159 ?>

Documentation generated on Tue, 26 Jul 2005 17:10:18 +1200 by phpDocumentor 1.2.3