1 | 1 | simandl | <?php |
2 | | | /************************************************************************************* |
3 | | | * Inno.php |
4 | | | * ---------- |
5 | | | * Author: Thomas Klingler (hotline@theratech.de) based on delphi.php from J�rja Norbert (jnorbi@vipmail.hu) |
6 | | | * Copyright: (c) 2004 J�rja Norbert, Nigel McNie (http://qbnz.com/highlighter) |
7 | | | * Release Version: 1.0.8.1 |
8 | | | * Date Started: 2005/07/29 |
9 | | | * |
10 | | | * Inno Script language inkl. Delphi (Object Pascal) language file for GeSHi. |
11 | | | * |
12 | | | * CHANGES |
13 | | | * ------- |
14 | | | * 2005/09/03 |
15 | | | * - First Release |
16 | | | * |
17 | | | * TODO (updated 2005/07/27) |
18 | | | * ------------------------- |
19 | | | * |
20 | | | ************************************************************************************* |
21 | | | * |
22 | | | * This file is part of GeSHi. |
23 | | | * |
24 | | | * GeSHi is free software; you can redistribute it and/or modify |
25 | | | * it under the terms of the GNU General Public License as published by |
26 | | | * the Free Software Foundation; either version 2 of the License, or |
27 | | | * (at your option) any later version. |
28 | | | * |
29 | | | * GeSHi is distributed in the hope that it will be useful, |
30 | | | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
31 | | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
32 | | | * GNU General Public License for more details. |
33 | | | * |
34 | | | * You should have received a copy of the GNU General Public License |
35 | | | * along with GeSHi; if not, write to the Free Software |
36 | | | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
37 | | | * |
38 | | | ************************************************************************************/ |
39 | | | |
40 | | | $language_data = array ( |
41 | | | 'LANG_NAME' => 'Inno', |
42 | | | 'COMMENT_SINGLE' => array(1 => '//'), |
43 | | | 'COMMENT_MULTI' => array('(*' => '*)'), |
44 | | | 'CASE_KEYWORDS' => 0, |
45 | | | 'QUOTEMARKS' => array("'", '"'), |
46 | | | 'ESCAPE_CHAR' => '', |
47 | | | 'KEYWORDS' => array( |
48 | | | 1 => array( |
49 | | | 'Setup','Types','Components','Tasks','Dirs','Files','Icons','INI', |
50 | | | 'InstallDelete','Languages','Messages','CustomMessage', |
51 | | | 'LangOptions','Registry','RUN','UninstallDelete','UninstallRun', |
52 | | | 'app','win','sys','syswow64','src','sd','pf','pf32','pf64','cf', |
53 | | | 'cf32','cf64','tmp','fonts','dao','group','localappdata','sendto', |
54 | | | 'userappdata','commonappdata','userdesktop','commondesktop', |
55 | | | 'userdocs','commondocs','userfavorites','commonfavorites', |
56 | | | 'userprograms','commonprograms','userstartmenu','commonstartmenu', |
57 | | | 'userstartup','commonstartup','usertemplates','commontemplates' |
58 | | | ), |
59 | | | 2 => array( |
60 | | | 'nil', 'false', 'true', 'var', 'type', 'const','And', 'Array', 'As', 'Begin', 'Case', 'Class', 'Constructor', 'Destructor', 'Div', 'Do', 'DownTo', 'Else', |
61 | | | 'End', 'Except', 'File', 'Finally', 'For', 'Function', 'Goto', 'If', 'Implementation', 'In', 'Inherited', 'Interface', |
62 | | | 'Is', 'Mod', 'Not', 'Object', 'Of', 'On', 'Or', 'Packed', 'Procedure', 'Property', 'Raise', 'Record', |
63 | | | 'Repeat', 'Set', 'Shl', 'Shr', 'Then', 'ThreadVar', 'To', 'Try', 'Unit', 'Until', 'Uses', 'While', 'With', 'Xor', |
64 | | | |
65 | | | 'HKCC','HKCR','HKCU','HKLM','HKU','alwaysoverwrite','alwaysskipifsameorolder','append', |
66 | | | 'binary','classic','closeonexit','comparetimestamp','confirmoverwrite', |
67 | | | 'createkeyifdoesntexist','createonlyiffileexists','createvalueifdoesntexist', |
68 | | | 'deleteafterinstall','deletekey','deletevalue','dirifempty','dontcloseonexit', |
69 | | | 'dontcopy','dontcreatekey','disablenouninstallwarning','dword','exclusive','expandsz', |
70 | | | 'external','files','filesandordirs','fixed','fontisnttruetype','ignoreversion','iscustom','isreadme', |
71 | | | 'modern','multisz','new','noerror','none','normal','nowait','onlyifdestfileexists', |
72 | | | 'onlyifdoesntexist','onlyifnewer','overwrite','overwritereadonly','postinstall', |
73 | | | 'preservestringtype','promptifolder','regserver','regtypelib','restart','restartreplace', |
74 | | | 'runhidden','runmaximized','runminimized','sharedfile','shellexec','showcheckbox', |
75 | | | 'skipifnotsilent','skipifsilent','silent','skipifdoesntexist', |
76 | | | 'skipifsourcedoesntexist','sortfilesbyextension','unchecked','uninsalwaysuninstall', |
77 | | | 'uninsclearvalue','uninsdeleteentry','uninsdeletekey','uninsdeletekeyifempty', |
78 | | | 'uninsdeletesection','uninsdeletesectionifempty','uninsdeletevalue', |
79 | | | 'uninsneveruninstall','useapppaths','verysilent','waituntilidle' |
80 | | | ), |
81 | | | 3 => array( |
82 | | | 'Abs', 'Addr', 'AnsiCompareStr', 'AnsiCompareText', 'AnsiContainsStr', 'AnsiEndsStr', 'AnsiIndexStr', 'AnsiLeftStr', |
83 | | | 'AnsiLowerCase', 'AnsiMatchStr', 'AnsiMidStr', 'AnsiPos', 'AnsiReplaceStr', 'AnsiReverseString', 'AnsiRightStr', |
84 | | | 'AnsiStartsStr', 'AnsiUpperCase', 'ArcCos', 'ArcSin', 'ArcTan', 'Assigned', 'BeginThread', 'Bounds', 'CelsiusToFahrenheit', |
85 | | | 'ChangeFileExt', 'Chr', 'CompareStr', 'CompareText', 'Concat', 'Convert', 'Copy', 'Cos', 'CreateDir', 'CurrToStr', |
86 | | | 'CurrToStrF', 'Date', 'DateTimeToFileDate', 'DateTimeToStr', 'DateToStr', 'DayOfTheMonth', 'DayOfTheWeek', 'DayOfTheYear', |
87 | | | 'DayOfWeek', 'DaysBetween', 'DaysInAMonth', 'DaysInAYear', 'DaySpan', 'DegToRad', 'DeleteFile', 'DiskFree', 'DiskSize', |
88 | | | 'DupeString', 'EncodeDate', 'EncodeDateTime', 'EncodeTime', 'EndOfADay', 'EndOfAMonth', 'Eof', 'Eoln', 'Exp', 'ExtractFileDir', |
89 | | | 'ExtractFileDrive', 'ExtractFileExt', 'ExtractFileName', 'ExtractFilePath', 'FahrenheitToCelsius', 'FileAge', |
90 | | | 'FileDateToDateTime', 'FileExists', 'FilePos', 'FileSearch', 'FileSetDate', 'FileSize', 'FindClose', 'FindCmdLineSwitch', |
91 | | | 'FindFirst', 'FindNext', 'FloatToStr', 'FloatToStrF', 'Format', 'FormatCurr', 'FormatDateTime', 'FormatFloat', 'Frac', |
92 | | | 'GetCurrentDir', 'GetLastError', 'GetMem', 'High', 'IncDay', 'IncMinute', 'IncMonth', 'IncYear', 'InputBox', |
93 | | | 'InputQuery', 'Int', 'IntToHex', 'IntToStr', 'IOResult', 'IsInfinite', 'IsLeapYear', 'IsMultiThread', 'IsNaN', |
94 | | | 'LastDelimiter', 'Length', 'Ln', 'Lo', 'Log10', 'Low', 'LowerCase', 'Max', 'Mean', 'MessageDlg', 'MessageDlgPos', |
95 | | | 'MonthOfTheYear', 'Now', 'Odd', 'Ord', 'ParamCount', 'ParamStr', 'Pi', 'Point', 'PointsEqual', 'Pos', 'Pred', |
96 | | | 'Printer', 'PromptForFileName', 'PtInRect', 'RadToDeg', 'Random', 'RandomRange', 'RecodeDate', 'RecodeTime', 'Rect', |
97 | | | 'RemoveDir', 'RenameFile', 'Round', 'SeekEof', 'SeekEoln', 'SelectDirectory', 'SetCurrentDir', 'Sin', 'SizeOf', |
98 | | | 'Slice', 'Sqr', 'Sqrt', 'StringOfChar', 'StringReplace', 'StringToWideChar', 'StrToCurr', 'StrToDate', 'StrToDateTime', |
99 | | | 'StrToFloat', 'StrToInt', 'StrToInt64', 'StrToInt64Def', 'StrToIntDef', 'StrToTime', 'StuffString', 'Succ', 'Sum', 'Tan', |
100 | | | 'Time', 'TimeToStr', 'Tomorrow', 'Trunc', 'UpCase', 'UpperCase', 'VarType', 'WideCharToString', 'WrapText', 'Yesterday', |
101 | | | 'Append', 'AppendStr', 'Assign', 'AssignFile', 'AssignPrn', 'Beep', 'BlockRead', 'BlockWrite', 'Break', |
102 | | | 'ChDir', 'Close', 'CloseFile', 'Continue', 'DateTimeToString', 'Dec', 'DecodeDate', 'DecodeDateTime', |
103 | | | 'DecodeTime', 'Delete', 'Dispose', 'EndThread', 'Erase', 'Exclude', 'Exit', 'FillChar', 'Flush', 'FreeAndNil', |
104 | | | 'FreeMem', 'GetDir', 'GetLocaleFormatSettings', 'Halt', 'Inc', 'Include', 'Insert', 'MkDir', 'Move', 'New', |
105 | | | 'ProcessPath', 'Randomize', 'Read', 'ReadLn', 'ReallocMem', 'Rename', 'ReplaceDate', 'ReplaceTime', |
106 | | | 'Reset', 'ReWrite', 'RmDir', 'RunError', 'Seek', 'SetLength', 'SetString', 'ShowMessage', 'ShowMessageFmt', |
107 | | | 'ShowMessagePos', 'Str', 'Truncate', 'Val', 'Write', 'WriteLn', |
108 | | | |
109 | | | 'AdminPrivilegesRequired','AfterInstall','AllowCancelDuringInstall','AllowNoIcons','AllowRootDirectory','AllowUNCPath','AlwaysRestart','AlwaysShowComponentsList','AlwaysShowDirOnReadyPage','AlwaysShowGroupOnReadyPage ','AlwaysUsePersonalGroup','AppComments','AppContact','AppCopyright','AppendDefaultDirName', |
110 | | | 'AppendDefaultGroupName','AppId','AppModifyPath','AppMutex','AppName','AppPublisher', |
111 | | | 'AppPublisherURL','AppReadmeFile','AppSupportURL','AppUpdatesURL','AppVerName','AppVersion', |
112 | | | 'Attribs','BackColor','BackColor2','BackColorDirection','BackSolid','BeforeInstall', |
113 | | | 'ChangesAssociations','ChangesEnvironment','Check','CodeFile','Comment','Compression','CopyMode', |
114 | | | 'CreateAppDir','CreateUninstallRegKey','DefaultDirName','DefaultGroupName', |
115 | | | 'DefaultUserInfoName','DefaultUserInfoOrg','DefaultUserInfoSerial', |
116 | | | 'Description','DestDir','DestName','DirExistsWarning', |
117 | | | 'DisableDirPage','DisableFinishedPage', |
118 | | | 'DisableProgramGroupPage','DisableReadyMemo','DisableReadyPage', |
119 | | | 'DisableStartupPrompt','DiskClusterSize','DiskSliceSize','DiskSpaceMBLabel', |
120 | | | 'DiskSpanning','DontMergeDuplicateFiles','EnableDirDoesntExistWarning','Encryption', |
121 | | | 'Excludes','ExtraDiskSpaceRequired','Filename','Flags','FlatComponentsList','FontInstall', |
122 | | | 'GroupDescription','HotKey','IconFilename','IconIndex','InfoAfterFile','InfoBeforeFile', |
123 | | | 'InternalCompressLevel','Key','LanguageDetectionMethod', |
124 | | | 'LicenseFile','MergeDuplicateFiles','MessagesFile','MinVersion','Name', |
125 | | | 'OnlyBelowVersion','OutputBaseFilename','OutputManifestFile','OutputDir', |
126 | | | 'Parameters','Password','Permissions','PrivilegesRequired','ReserveBytes', |
127 | | | 'RestartIfNeededByRun','Root','RunOnceId','Section','SetupIconFile', |
128 | | | 'ShowComponentSizes','ShowLanguageDialog','ShowTasksTreeLines','SlicesPerDisk', |
129 | | | 'SolidCompression','Source','SourceDir','StatusMsg','Subkey', |
130 | | | 'TimeStampRounding','TimeStampsInUTC','TouchDate','TouchTime','Type', |
131 | | | 'UninstallDisplayIcon','UninstallDisplayName','UninstallFilesDir','UninstallIconFile', |
132 | | | 'UninstallLogMode','UninstallRestartComputer','UninstallStyle','Uninstallable', |
133 | | | 'UpdateUninstallLogAppName','UsePreviousAppDir','UsePreviousGroup', |
134 | | | 'UsePreviousTasks','UsePreviousSetupType','UsePreviousUserInfo', |
135 | | | 'UserInfoPage','UseSetupLdr','ValueData','ValueName','ValueType', |
136 | | | 'VersionInfoVersion','VersionInfoCompany','VersionInfoDescription','VersionInfoTextVersion', |
137 | | | 'WindowResizable','WindowShowCaption','WindowStartMaximized', |
138 | | | 'WindowVisible','WizardImageBackColor','WizardImageFile','WizardImageStretch','WizardSmallImageBackColor','WizardSmallImageFile','WizardStyle','WorkingDir' |
139 | | | ), |
140 | | | 4 => array( |
141 | | | 'AnsiChar', 'AnsiString', 'Boolean', 'Byte', 'Cardinal', 'Char', 'Comp', 'Currency', 'Double', 'Extended', |
142 | | | 'Int64', 'Integer', 'LongInt', 'LongWord', 'PAnsiChar', 'PAnsiString', 'PChar', 'PCurrency', 'PDateTime', |
143 | | | 'PExtended', 'PInt64', 'Pointer', 'PShortString', 'PString', 'PVariant', 'PWideChar', 'PWideString', |
144 | | | 'Real', 'Real48', 'ShortInt', 'ShortString', 'Single', 'SmallInt', 'String', 'TBits', 'TConvType', 'TDateTime', |
145 | | | 'Text', 'TextFile', 'TFloatFormat', 'TFormatSettings', 'TList', 'TObject', 'TOpenDialog', 'TPoint', |
146 | | | 'TPrintDialog', 'TRect', 'TReplaceFlags', 'TSaveDialog', 'TSearchRec', 'TStringList', 'TSysCharSet', |
147 | | | 'TThreadFunc', 'Variant', 'WideChar', 'WideString', 'Word' |
148 | | | ), |
149 | | | ), |
150 | | | 'SYMBOLS' => array( |
151 | | | '(', ')', '[', ']', '{', '}', '@', '%', '&', '*', '|', '/', '<', '>' |
152 | | | ), |
153 | | | 'CASE_SENSITIVE' => array( |
154 | | | GESHI_COMMENTS => false, |
155 | | | 1 => false, |
156 | | | 2 => false, |
157 | | | 3 => false, |
158 | | | 4 => false, |
159 | | | ), |
160 | | | 'STYLES' => array( |
161 | | | 'KEYWORDS' => array( |
162 | | | 1 => 'color: #000000; font-weight: bold;',/*bold Black*/ |
163 | | | 2 => 'color: #000000;font-style: italic;',/*Black*/ |
164 | | | 3 => 'color: #0000FF;',/*blue*/ |
165 | | | 4 => 'color: #CC0000;'/*red*/ |
166 | | | ), |
167 | | | 'COMMENTS' => array( |
168 | | | 1 => 'color: #33FF00; font-style: italic;', |
169 | | | 'MULTI' => 'color: #33FF00; font-style: italic;' |
170 | | | ), |
171 | | | 'ESCAPE_CHAR' => array( |
172 | | | ), |
173 | | | 'BRACKETS' => array( |
174 | | | |
175 | | | ), |
176 | | | 'STRINGS' => array( |
177 | | | |
178 | | | ), |
179 | | | 'NUMBERS' => array( |
180 | | | |
181 | | | ), |
182 | | | 'METHODS' => array( |
183 | | | 1 => 'color: #006600;' |
184 | | | ), |
185 | | | 'REGEXPS' => array( |
186 | | | ), |
187 | | | 'SYMBOLS' => array( |
188 | | | |
189 | | | ), |
190 | | | 'SCRIPT' => array( |
191 | | | ) |
192 | | | ), |
193 | | | 'URLS' => array( |
194 | | | 1 => '', |
195 | | | 2 => '', |
196 | | | 3 => '', |
197 | | | 4 => '' |
198 | | | ), |
199 | | | 'OOLANG' => true, |
200 | | | 'OBJECT_SPLITTERS' => array( |
201 | | | 1 => '.' |
202 | | | ), |
203 | | | 'REGEXPS' => array( |
204 | | | ), |
205 | | | 'STRICT_MODE_APPLIES' => GESHI_NEVER, |
206 | | | 'SCRIPT_DELIMITERS' => array( |
207 | | | ), |
208 | | | 'HIGHLIGHT_STRICT_BLOCK' => array( |
209 | | | ) |
210 | | | ); |
211 | | | |
212 | | | ?> |