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