[ Index ] |
|
Code source de DokuWiki 2006-11-06 |
1 <?php 2 /************************************************************************************* 3 * pascal.php 4 * ---------- 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.15 8 * CVS Revision Version: $Revision: 1.13.2.4 $ 9 * Date Started: 2004/07/26 10 * Last Modified: $Date: 2006/09/23 02:05:47 $ 11 * 12 * Pascal language file for GeSHi. 13 * 14 * CHANGES 15 * ------- 16 * 2004/11/27 (1.0.2) 17 * - Added support for multiple object splitters 18 * 2004/10/27 (1.0.1) 19 * - Added support for URLs 20 * 2004/08/05 (1.0.0) 21 * - Added support for symbols 22 * 2004/07/27 (0.9.1) 23 * - Pascal is OO language. Some new words. 24 * 2004/07/26 (0.9.0) 25 * - First Release 26 * 27 * TODO (updated 2004/11/27) 28 * ------------------------- 29 * 30 ************************************************************************************* 31 * 32 * This file is part of GeSHi. 33 * 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. 38 * 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. 43 * 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 47 * 48 ************************************************************************************/ 49 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' => '\\', 57 'KEYWORDS' => array( 58 1 => array( 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' 65 ), 66 2 => array( 67 'nil', 'false', 'break', 'true', 'function', 'procedure','implementation','interface', 68 'unit','program','initialization','finalization','uses' 69 ), 70 3 => array( 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' 74 ), 75 4 => array( 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' 80 ), 81 ), 82 'SYMBOLS' => array( 83 ), 84 'CASE_SENSITIVE' => array( 85 GESHI_COMMENTS => true, 86 1 => false, 87 2 => false, 88 3 => false, 89 4 => false, 90 ), 91 'STYLES' => array( 92 'KEYWORDS' => array( 93 1 => 'color: #b1b100;', 94 2 => 'color: #000000; font-weight: bold;', 95 3 => '', 96 4 => 'color: #993333;' 97 ), 98 'COMMENTS' => array( 99 1 => 'color: #808080; font-style: italic;', 100 2 => 'color: #339933;', 101 'MULTI' => 'color: #808080; font-style: italic;' 102 ), 103 'ESCAPE_CHAR' => array( 104 0 => 'color: #000099; font-weight: bold;' 105 ), 106 'BRACKETS' => array( 107 0 => 'color: #66cc66;' 108 ), 109 'STRINGS' => array( 110 0 => 'color: #ff0000;' 111 ), 112 'NUMBERS' => array( 113 0 => 'color: #cc66cc;' 114 ), 115 'METHODS' => array( 116 1 => 'color: #202020;' 117 ), 118 'SYMBOLS' => array( 119 0 => 'color: #66cc66;' 120 ), 121 'REGEXPS' => array( 122 ), 123 'SCRIPT' => array( 124 ) 125 ), 126 'URLS' => array( 127 1 => '', 128 2 => '', 129 3 => '', 130 4 => '' 131 ), 132 'OOLANG' => true, 133 'OBJECT_SPLITTERS' => array( 134 1 => '.' 135 ), 136 'REGEXPS' => array( 137 ), 138 'STRICT_MODE_APPLIES' => GESHI_NEVER, 139 'SCRIPT_DELIMITERS' => array( 140 ), 141 'HIGHLIGHT_STRICT_BLOCK' => array( 142 ) 143 ); 144 145 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Tue Apr 3 20:47:31 2007 | par Balluche grâce à PHPXref 0.7 |