]>
src.bluestatic.org Git - viewsvn.git/blob - includes/geshi/geshi/pascal.php
2 /*************************************************************************************
5 * Author: Tux (tux@inamil.cz)
6 * Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter)
7 * Release Version: 1.0.7.5
8 * CVS Revision Version: $Revision: 1.5 $
9 * Date Started: 2004/07/26
10 * Last Modified: $Date: 2005/10/22 07:52:59 $
12 * Pascal language file for GeSHi.
17 * - Added support for multiple object splitters
19 * - Added support for URLs
21 * - Added support for symbols
23 * - Pascal is OO language. Some new words.
27 * TODO (updated 2004/11/27)
28 * -------------------------
30 *************************************************************************************
32 * This file is part of GeSHi.
34 * GeSHi is free software; you can redistribute it and/or modify
35 * it under the terms of the GNU General Public License as published by
36 * the Free Software Foundation; either version 2 of the License, or
37 * (at your option) any later version.
39 * GeSHi is distributed in the hope that it will be useful,
40 * but WITHOUT ANY WARRANTY; without even the implied warranty of
41 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42 * GNU General Public License for more details.
44 * You should have received a copy of the GNU General Public License
45 * along with GeSHi; if not, write to the Free Software
46 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
48 ************************************************************************************/
50 $language_data = array (
51 'LANG_NAME' => 'Pascal',
52 'COMMENT_SINGLE' => array(1 => '//'),
53 'COMMENT_MULTI' => array('{' => '}','(*' => '*)'),
54 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE
,
55 'QUOTEMARKS' => array("'", '"'),
56 'ESCAPE_CHAR' => '\\',
59 'if', 'while', 'until', 'repeat', 'default',
60 'do', 'else', 'for', 'switch', 'goto','label','asm','begin','end',
61 'assembler','case', 'downto', 'to','div','mod','far','forward','in','inherited',
62 'inline','interrupt','label','library','not','var','of','then','stdcall',
63 'cdecl','end.','raise','try','except','name','finally','resourcestring','override','overload',
64 'default','public','protected','private','property','published','stored','catch'
67 'nil', 'false', 'break', 'true', 'function', 'procedure','implementation','interface',
68 'unit','program','initialization','finalization','uses'
71 'abs', 'absolute','and','arc','arctan','chr','constructor','destructor',
72 'dispose','cos','eof','eoln','exp','get','index','ln','new','xor','write','writeln',
73 'shr','sin','sqrt','succ','pred','odd','read','readln','ord','ordinal','blockread','blockwrite'
76 'array', 'char', 'const', 'boolean', 'real', 'integer', 'longint',
77 'word', 'shortint', 'record','byte','bytebool','string',
78 'type','object','export','exports','external','file','longbool','pointer','set',
79 'packed','ansistring','union'
84 'CASE_SENSITIVE' => array(
85 GESHI_COMMENTS
=> true,
93 1 => 'color: #b1b100;',
94 2 => 'color: #000000; font-weight: bold;',
96 4 => 'color: #993333;'
99 1 => 'color: #808080; font-style: italic;',
100 2 => 'color: #339933;',
101 'MULTI' => 'color: #808080; font-style: italic;'
103 'ESCAPE_CHAR' => array(
104 0 => 'color: #000099; font-weight: bold;'
107 0 => 'color: #66cc66;'
110 0 => 'color: #ff0000;'
113 0 => 'color: #cc66cc;'
116 1 => 'color: #202020;'
119 0 => 'color: #66cc66;'
133 'OBJECT_SPLITTERS' => array(
138 'STRICT_MODE_APPLIES' => GESHI_NEVER
,
139 'SCRIPT_DELIMITERS' => array(
141 'HIGHLIGHT_STRICT_BLOCK' => array(