Updating GeSHi to latest version, 1.0.7.6
[viewsvn.git] / includes / geshi / geshi / 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.6
8 * CVS Revision Version: $Revision: 1.9 $
9 * Date Started: 2004/07/26
10 * Last Modified: $Date: 2006/01/21 23:36:08 $
11 *
12 * Delphi (Object Pascal) language file for GeSHi.
13 *
14 * CHANGES
15 * -------
16 * 2005/11/19 (1.0.3)
17 * - Updated the very incomplete keyword and type lists
18 * 2005/09/03 (1.0.2)
19 * - Added support for hex numbers and string entities
20 * 2004/11/27 (1.0.1)
21 * - Added support for multiple object splitters
22 * 2004/10/27 (1.0.0)
23 * - First Release
24 *
25 * TODO (updated 2004/11/27)
26 * -------------------------
27 *
28 *************************************************************************************
29 *
30 * This file is part of GeSHi.
31 *
32 * GeSHi is free software; you can redistribute it and/or modify
33 * it under the terms of the GNU General Public License as published by
34 * the Free Software Foundation; either version 2 of the License, or
35 * (at your option) any later version.
36 *
37 * GeSHi is distributed in the hope that it will be useful,
38 * but WITHOUT ANY WARRANTY; without even the implied warranty of
39 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40 * GNU General Public License for more details.
41 *
42 * You should have received a copy of the GNU General Public License
43 * along with GeSHi; if not, write to the Free Software
44 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
45 *
46 ************************************************************************************/
47
48 $language_data = array (
49 'LANG_NAME' => 'Delphi',
50 'COMMENT_SINGLE' => array(1 => '//'),
51 'COMMENT_MULTI' => array('(*' => '*)', '{' => '}'),
52 'CASE_KEYWORDS' => 0,
53 'QUOTEMARKS' => array("'", '"'),
54 'ESCAPE_CHAR' => '',
55 'KEYWORDS' => array(
56 1 => array(
57 'Abstract', 'And', 'Array', 'As', 'Asm', 'At', 'Begin', 'Case', 'Class',
58 'Const', 'Constructor', 'Contains', 'Destructor', 'DispInterface', 'Div',
59 'Do', 'DownTo', 'Else', 'End', 'Except', 'File', 'Finalization',
60 'Finally', 'For', 'Function', 'Goto', 'If', 'Implementation', 'In',
61 'Inherited', 'Initialization', 'Inline', 'Interface', 'Is', 'Label',
62 'Mod', 'Not', 'Object', 'Of', 'On', 'Or', 'Overload', 'Override',
63 'Package', 'Packed', 'Private', 'Procedure', 'Program', 'Property',
64 'Protected', 'Public', 'Published', 'Raise', 'Record', 'Repeat',
65 'Requires', 'Resourcestring', 'Set', 'Shl', 'Shr', 'Then', 'ThreadVar',
66 'To', 'Try', 'Type', 'Unit', 'Until', 'Uses', 'Var', 'Virtual', 'While',
67 'With', 'Xor', 'assembler', 'cdecl', 'far', 'near', 'pascal', 'register',
68 'safecall', 'stdcall', 'varargs'
69 ),
70 2 => array(
71 'nil', 'false', 'self', 'true', 'var', 'type', 'const'
72 ),
73 3 => array(
74 'Abs', 'AcquireExceptionObject', 'Addr', 'AnsiToUtf8', 'Append', 'ArcTan',
75 'Assert', 'AssignFile', 'Assigned', 'BeginThread', 'BlockRead',
76 'BlockWrite', 'Break', 'ChDir', 'Chr', 'Close', 'CloseFile',
77 'CompToCurrency', 'CompToDouble', 'Concat', 'Continue', 'Copy', 'Cos',
78 'Dec', 'Delete', 'Dispose', 'DoubleToComp', 'EndThread', 'EnumModules',
79 'EnumResourceModules', 'Eof', 'Eoln', 'Erase', 'ExceptAddr',
80 'ExceptObject', 'Exclude', 'Exit', 'Exp', 'FilePos', 'FileSize',
81 'FillChar', 'Finalize', 'FindClassHInstance', 'FindHInstance',
82 'FindResourceHInstance', 'Flush', 'Frac', 'FreeMem', 'Get8087CW',
83 'GetDir', 'GetLastError', 'GetMem', 'GetMemoryManager',
84 'GetModuleFileName', 'GetVariantManager', 'Halt', 'Hi', 'High',
85 'IOResult', 'Inc', 'Include', 'Initialize', 'Insert', 'Int',
86 'IsMemoryManagerSet', 'IsVariantManagerSet', 'Length', 'Ln', 'Lo', 'Low',
87 'MkDir', 'Move', 'New', 'Odd', 'OleStrToStrVar', 'OleStrToString', 'Ord',
88 'PUCS4Chars', 'ParamCount', 'ParamStr', 'Pi', 'Pos', 'Pred', 'Ptr',
89 'Random', 'Randomize', 'Read', 'ReadLn', 'ReallocMem',
90 'ReleaseExceptionObject', 'Rename', 'Reset', 'Rewrite', 'RmDir', 'Round',
91 'RunError', 'Seek', 'SeekEof', 'SeekEoln', 'Set8087CW', 'SetLength',
92 'SetLineBreakStyle', 'SetMemoryManager', 'SetString', 'SetTextBuf',
93 'SetVariantManager', 'Sin', 'SizeOf', 'Slice', 'Sqr', 'Sqrt', 'Str',
94 'StringOfChar', 'StringToOleStr', 'StringToWideChar', 'Succ', 'Swap',
95 'Trunc', 'Truncate', 'TypeInfo', 'UCS4StringToWideString', 'UTF8Decode',
96 'UTF8Encode', 'UnicodeToUtf8', 'UniqueString', 'UpCase', 'Utf8ToAnsi',
97 'Utf8ToUnicode', 'Val', 'VarArrayRedim', 'VarClear',
98 'WideCharLenToStrVar', 'WideCharLenToString', 'WideCharToStrVar',
99 'WideCharToString', 'WideStringToUCS4String', 'Write', 'WriteLn',
100
101 'Abort', 'AddExitProc', 'AddTerminateProc', 'AdjustLineBreaks', 'AllocMem',
102 'AnsiCompareFileName', 'AnsiCompareStr', 'AnsiCompareText',
103 'AnsiDequotedStr', 'AnsiExtractQuotedStr', 'AnsiLastChar',
104 'AnsiLowerCase', 'AnsiLowerCaseFileName', 'AnsiPos', 'AnsiQuotedStr',
105 'AnsiSameStr', 'AnsiSameText', 'AnsiStrComp', 'AnsiStrIComp',
106 'AnsiStrLComp', 'AnsiStrLIComp', 'AnsiStrLastChar', 'AnsiStrLower',
107 'AnsiStrPos', 'AnsiStrRScan', 'AnsiStrScan', 'AnsiStrUpper',
108 'AnsiUpperCase', 'AnsiUpperCaseFileName', 'AppendStr', 'AssignStr',
109 'Beep', 'BoolToStr', 'ByteToCharIndex', 'ByteToCharLen', 'ByteType',
110 'CallTerminateProcs', 'ChangeFileExt', 'CharLength', 'CharToByteIndex',
111 'CharToByteLen', 'CompareMem', 'CompareStr', 'CompareText', 'CreateDir',
112 'CreateGUID', 'CurrToStr', 'CurrToStrF', 'CurrentYear', 'Date',
113 'DateTimeToFileDate', 'DateTimeToStr', 'DateTimeToString',
114 'DateTimeToSystemTime', 'DateTimeToTimeStamp', 'DateToStr', 'DayOfWeek',
115 'DecodeDate', 'DecodeDateFully', 'DecodeTime', 'DeleteFile',
116 'DirectoryExists', 'DiskFree', 'DiskSize', 'DisposeStr', 'EncodeDate',
117 'EncodeTime', 'ExceptionErrorMessage', 'ExcludeTrailingBackslash',
118 'ExcludeTrailingPathDelimiter', 'ExpandFileName', 'ExpandFileNameCase',
119 'ExpandUNCFileName', 'ExtractFileDir', 'ExtractFileDrive',
120 'ExtractFileExt', 'ExtractFileName', 'ExtractFilePath',
121 'ExtractRelativePath', 'ExtractShortPathName', 'FileAge', 'FileClose',
122 'FileCreate', 'FileDateToDateTime', 'FileExists', 'FileGetAttr',
123 'FileGetDate', 'FileIsReadOnly', 'FileOpen', 'FileRead', 'FileSearch',
124 'FileSeek', 'FileSetAttr', 'FileSetDate', 'FileSetReadOnly', 'FileWrite',
125 'FinalizePackage', 'FindClose', 'FindCmdLineSwitch', 'FindFirst',
126 'FindNext', 'FloatToCurr', 'FloatToDateTime', 'FloatToDecimal',
127 'FloatToStr', 'FloatToStrF', 'FloatToText', 'FloatToTextFmt',
128 'FmtLoadStr', 'FmtStr', 'ForceDirectories', 'Format', 'FormatBuf',
129 'FormatCurr', 'FormatDateTime', 'FormatFloat', 'FreeAndNil',
130 'GUIDToString', 'GetCurrentDir', 'GetEnvironmentVariable',
131 'GetFileVersion', 'GetFormatSettings', 'GetLocaleFormatSettings',
132 'GetModuleName', 'GetPackageDescription', 'GetPackageInfo', 'GetTime',
133 'IncAMonth', 'IncMonth', 'IncludeTrailingBackslash',
134 'IncludeTrailingPathDelimiter', 'InitializePackage', 'IntToHex',
135 'IntToStr', 'InterlockedDecrement', 'InterlockedExchange',
136 'InterlockedExchangeAdd', 'InterlockedIncrement', 'IsDelimiter',
137 'IsEqualGUID', 'IsLeapYear', 'IsPathDelimiter', 'IsValidIdent',
138 'Languages', 'LastDelimiter', 'LoadPackage', 'LoadStr', 'LowerCase',
139 'MSecsToTimeStamp', 'NewStr', 'NextCharIndex', 'Now', 'OutOfMemoryError',
140 'QuotedStr', 'RaiseLastOSError', 'RaiseLastWin32Error', 'RemoveDir',
141 'RenameFile', 'ReplaceDate', 'ReplaceTime', 'SafeLoadLibrary',
142 'SameFileName', 'SameText', 'SetCurrentDir', 'ShowException', 'Sleep',
143 'StrAlloc', 'StrBufSize', 'StrByteType', 'StrCat', 'StrCharLength',
144 'StrComp', 'StrCopy', 'StrDispose', 'StrECopy', 'StrEnd', 'StrFmt',
145 'StrIComp', 'StrLCat', 'StrLComp', 'StrLCopy', 'StrLFmt', 'StrLIComp',
146 'StrLen', 'StrLower', 'StrMove', 'StrNew', 'StrNextChar', 'StrPCopy',
147 'StrPLCopy', 'StrPas', 'StrPos', 'StrRScan', 'StrScan', 'StrToBool',
148 'StrToBoolDef', 'StrToCurr', 'StrToCurrDef', 'StrToDate', 'StrToDateDef',
149 'StrToDateTime', 'StrToDateTimeDef', 'StrToFloat', 'StrToFloatDef',
150 'StrToInt', 'StrToInt64', 'StrToInt64Def', 'StrToIntDef', 'StrToTime',
151 'StrToTimeDef', 'StrUpper', 'StringReplace', 'StringToGUID', 'Supports',
152 'SysErrorMessage', 'SystemTimeToDateTime', 'TextToFloat', 'Time',
153 'TimeStampToDateTime', 'TimeStampToMSecs', 'TimeToStr', 'Trim',
154 'TrimLeft', 'TrimRight', 'TryEncodeDate', 'TryEncodeTime',
155 'TryFloatToCurr', 'TryFloatToDateTime', 'TryStrToBool', 'TryStrToCurr',
156 'TryStrToDate', 'TryStrToDateTime', 'TryStrToFloat', 'TryStrToInt',
157 'TryStrToInt64', 'TryStrToTime', 'UnloadPackage', 'UpperCase',
158 'WideCompareStr', 'WideCompareText', 'WideFmtStr', 'WideFormat',
159 'WideFormatBuf', 'WideLowerCase', 'WideSameStr', 'WideSameText',
160 'WideUpperCase', 'Win32Check', 'WrapText',
161
162 'ActivateClassGroup', 'AllocateHwnd', 'BinToHex', 'CheckSynchronize',
163 'CollectionsEqual', 'CountGenerations', 'DeallocateHwnd', 'EqualRect',
164 'ExtractStrings', 'FindClass', 'FindGlobalComponent', 'GetClass',
165 'GroupDescendantsWith', 'HexToBin', 'IdentToInt',
166 'InitInheritedComponent', 'IntToIdent', 'InvalidPoint',
167 'IsUniqueGlobalComponentName', 'LineStart', 'ObjectBinaryToText',
168 'ObjectResourceToText', 'ObjectTextToBinary', 'ObjectTextToResource',
169 'PointsEqual', 'ReadComponentRes', 'ReadComponentResEx',
170 'ReadComponentResFile', 'Rect', 'RegisterClass', 'RegisterClassAlias',
171 'RegisterClasses', 'RegisterComponents', 'RegisterIntegerConsts',
172 'RegisterNoIcon', 'RegisterNonActiveX', 'SmallPoint', 'StartClassGroup',
173 'TestStreamFormat', 'UnregisterClass', 'UnregisterClasses',
174 'UnregisterIntegerConsts', 'UnregisterModuleClasses',
175 'WriteComponentResFile',
176
177 'ArcCos', 'ArcCosh', 'ArcCot', 'ArcCotH', 'ArcCsc', 'ArcCscH', 'ArcSec',
178 'ArcSecH', 'ArcSin', 'ArcSinh', 'ArcTan2', 'ArcTanh', 'Ceil',
179 'CompareValue', 'Cosecant', 'Cosh', 'Cot', 'CotH', 'Cotan', 'Csc', 'CscH',
180 'CycleToDeg', 'CycleToGrad', 'CycleToRad', 'DegToCycle', 'DegToGrad',
181 'DegToRad', 'DivMod', 'DoubleDecliningBalance', 'EnsureRange', 'Floor',
182 'Frexp', 'FutureValue', 'GetExceptionMask', 'GetPrecisionMode',
183 'GetRoundMode', 'GradToCycle', 'GradToDeg', 'GradToRad', 'Hypot',
184 'InRange', 'IntPower', 'InterestPayment', 'InterestRate',
185 'InternalRateOfReturn', 'IsInfinite', 'IsNan', 'IsZero', 'Ldexp', 'LnXP1',
186 'Log10', 'Log2', 'LogN', 'Max', 'MaxIntValue', 'MaxValue', 'Mean',
187 'MeanAndStdDev', 'Min', 'MinIntValue', 'MinValue', 'MomentSkewKurtosis',
188 'NetPresentValue', 'Norm', 'NumberOfPeriods', 'Payment', 'PeriodPayment',
189 'Poly', 'PopnStdDev', 'PopnVariance', 'Power', 'PresentValue',
190 'RadToCycle', 'RadToDeg', 'RadToGrad', 'RandG', 'RandomRange', 'RoundTo',
191 'SLNDepreciation', 'SYDDepreciation', 'SameValue', 'Sec', 'SecH',
192 'Secant', 'SetExceptionMask', 'SetPrecisionMode', 'SetRoundMode', 'Sign',
193 'SimpleRoundTo', 'SinCos', 'Sinh', 'StdDev', 'Sum', 'SumInt',
194 'SumOfSquares', 'SumsAndSquares', 'Tan', 'Tanh', 'TotalVariance',
195 'Variance'
196 ),
197 4 => array(
198 'AnsiChar', 'AnsiString', 'Bool', 'Boolean', 'Byte', 'ByteBool', 'Cardinal', 'Char',
199 'Comp', 'Currency', 'DWORD', 'Double', 'Extended', 'Int64', 'Integer', 'IUnknown',
200 'LongBool', 'LongInt', 'LongWord', 'PAnsiChar', 'PAnsiString', 'PBool', 'PBoolean', 'PByte',
201 'PByteArray', 'PCardinal', 'PChar', 'PComp', 'PCurrency', 'PDWORD', 'PDate', 'PDateTime',
202 'PDouble', 'PExtended', 'PInt64', 'PInteger', 'PLongInt', 'PLongWord', 'Pointer', 'PPointer',
203 'PShortInt', 'PShortString', 'PSingle', 'PSmallInt', 'PString', 'PHandle', 'PVariant', 'PWord',
204 'PWordArray', 'PWordBool', 'PWideChar', 'PWideString', 'Real', 'Real48', 'ShortInt', 'ShortString',
205 'Single', 'SmallInt', 'String', 'TClass', 'TDate', 'TDateTime', 'TextFile', 'THandle',
206 'TObject', 'TTime', 'Variant', 'WideChar', 'WideString', 'Word', 'WordBool'
207 ),
208 ),
209 'CASE_SENSITIVE' => array(
210 GESHI_COMMENTS => true,
211 1 => false,
212 2 => false,
213 3 => false,
214 4 => false,
215 ),
216 'STYLES' => array(
217 'KEYWORDS' => array(
218 1 => 'color: #000000; font-weight: bold;',
219 2 => 'color: #000000; font-weight: bold;',
220 3 => 'color: #000066;',
221 4 => 'color: #993333;'
222 ),
223 'COMMENTS' => array(
224 1 => 'color: #808080; font-style: italic;',
225 'MULTI' => 'color: #808080; font-style: italic;'
226 ),
227 'ESCAPE_CHAR' => array(
228 ),
229 'BRACKETS' => array(
230 0 => 'color: #66cc66;'
231 ),
232 'STRINGS' => array(
233 0 => 'color: #ff0000;'
234 ),
235 'NUMBERS' => array(
236 0 => 'color: #cc66cc;'
237 ),
238 'METHODS' => array(
239 1 => 'color: #006600;'
240 ),
241 'REGEXPS' => array(
242 0 => 'color: #9ac;',
243 1 => 'color: #ff0000;'
244 ),
245 'SYMBOLS' => array(
246 0 => 'color: #66cc66;'
247 ),
248 'SCRIPT' => array(
249 )
250 ),
251 'URLS' => array(
252 1 => '',
253 2 => '',
254 3 => '',
255 4 => ''
256 ),
257 'OOLANG' => true,
258 'OBJECT_SPLITTERS' => array(
259 1 => '.'
260 ),
261 'REGEXPS' => array(
262 0 => '\$[0-9a-fA-F]+',
263 1 => '\#\$?[0-9]{1,3}'
264 ),
265 'STRICT_MODE_APPLIES' => GESHI_NEVER,
266 'SCRIPT_DELIMITERS' => array(
267 ),
268 'HIGHLIGHT_STRICT_BLOCK' => array(
269 )
270 );
271
272 ?>