tcl.php

gehe zur Dokumentation dieser Datei
00001 <?php
00002 /*************************************************************************************
00003  * tcl.php
00004  * ---------------------------------
00005  * Author: Reid van Melle (rvanmelle@gmail.com)
00006  * Copyright: (c) 2004 Reid van Melle (sorry@nowhere)
00007  * Release Version: 1.0.7.20
00008  * Date Started: 2006/05/05
00009  *
00010  * TCL/iTCL language file for GeSHi.
00011  *
00012  * This was thrown together in about an hour so I don't expect
00013  * really great things.  However, it is a good start.  I never
00014  * got a change to try out the iTCL or object-based support but
00015  * this is not widely used anyway.
00016  *
00017  * CHANGES
00018  * -------
00019  * 2006/05/05 (1.0.0)
00020  *  -  First Release
00021  *
00022  * TODO (updated 2006/05/05)
00023  * -------------------------
00024  * - Get TCL built-in special variables hilighted with a new color..
00025  *   currently, these are listed in //special variables in the keywords
00026  *   section, but they get covered by the general REGEXP for symbols
00027  * - General cleanup, testing, and verification
00028  *
00029  *************************************************************************************
00030  *
00031  *     This file is part of GeSHi.
00032  *
00033  *   GeSHi is free software; you can redistribute it and/or modify
00034  *   it under the terms of the GNU General Public License as published by
00035  *   the Free Software Foundation; either version 2 of the License, or
00036  *   (at your option) any later version.
00037  *
00038  *   GeSHi is distributed in the hope that it will be useful,
00039  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00040  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00041  *   GNU General Public License for more details.
00042  *
00043  *   You should have received a copy of the GNU General Public License
00044  *   along with GeSHi; if not, write to the Free Software
00045  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00046  *
00047  ************************************************************************************/
00048 
00049 $language_data = array (
00050      'LANG_NAME' => 'TCL',
00051      'COMMENT_SINGLE' => array(1 => '#'),
00052      'COMMENT_MULTI' => array(),
00053      'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
00054      'QUOTEMARKS' => array('"', "'"),
00055      'ESCAPE_CHAR' => '\\',
00056      'KEYWORDS' => array(
00057 
00058           /*
00059           ** Set 1: reserved words
00060           ** http://python.org/doc/current/ref/keywords.html
00061           */
00062           1 => array(
00063                'proc', 'global', 'upvar', 'if', 'then', 'else', 'elseif', 'for', 'foreach',
00064                'break', 'continue', 'while', 'set', 'eval', 'case', 'in', 'switch',
00065                'default', 'exit', 'error', 'proc', 'return', 'uplevel', 'loop', 
00066                'for_array_keys', 'for_recursive_glob', 'for_file', 'unwind_protect',
00067                'expr', 'catch', 'namespace', 'rename', 'variable',
00068                // itcl
00069                'method', 'itcl_class', 'public', 'protected'),
00070 
00071           /*
00072           ** Set 2: builtins
00073           ** http://asps.activatestate.com/ASPN/docs/ActiveTcl/8.4/tcl/tcl_2_contents.htm
00074           */
00075           2 => array(
00076                // string handling
00077                'append', 'binary', 'format', 're_syntax', 'regexp', 'regsub',
00078                'scan', 'string', 'subst', 
00079                // list handling
00080                'concat', 'join', 'lappend', 'lindex', 'list', 'llength', 'lrange',
00081                'lreplace', 'lsearch', 'lset', 'lsort', 'split',
00082                // math
00083                'expr',
00084                // procedures and output
00085                'incr', 'close', 'eof', 'fblocked', 'fconfigure', 'fcopy', 'file',
00086                'fileevent', 'flush', 'gets', 'open', 'puts', 'read', 'seek', 
00087                'socket', 'tell',
00088                // packages and source files
00089                'load', 'loadTk', 'package', 'pgk::create', 'pgk_mkIndex', 'source',
00090                // interpreter routines
00091                'bgerror', 'history', 'info', 'interp', 'memory', 'unknown',
00092                // library routines
00093                'enconding', 'http', 'msgcat',
00094                // system related
00095                'cd', 'clock', 'exec', 'exit', 'glob', 'pid', 'pwd', 'time',
00096                // platform specified
00097                'dde', 'registry', 'resource',
00098                // special variables
00099                '$argc', '$argv', '$errorCode', '$errorInfo', '$argv0', 
00100                '$auto_index', '$auto_oldpath', '$auto_path', '$env', 
00101                '$tcl_interactive', '$tcl_libpath', '$tcl_library', 
00102                '$tcl_pkgPath', '$tcl_platform', '$tcl_precision', '$tcl_traceExec',
00103                ),
00104 
00105           /*
00106           ** Set 3: standard library
00107           */
00108           3 => array(
00109                'comment', 'dde', 'filename', 'http', 'library', 'memory',
00110                'packagens', 'registry', 'resource', 'tcltest', 'tclvars',
00111                ),
00112 
00113           /*
00114           ** Set 4: special methods
00115           */
00116           4 => array(
00117                )
00118 
00119           ),
00120      'SYMBOLS' => array(
00121                '(', ')', '[', ']', '{', '}', '$', '*', '&', '%', '!', ';', '<', '>', '?'
00122           ),
00123      'CASE_SENSITIVE' => array(
00124           GESHI_COMMENTS => true,
00125           1 => true,
00126         2 => true,
00127         3 => true,
00128         4 => true
00129           ),
00130      'STYLES' => array(
00131           'KEYWORDS' => array(
00132                1 => 'color: #ff7700;font-weight:bold;',     // Reserved
00133                2 => 'color: #008000;',                           // Built-ins + self
00134                3 => 'color: #dc143c;',                           // Standard lib
00135                4 => 'color: #0000cd;'                            // Special methods
00136                ),
00137           'COMMENTS' => array(
00138                1 => 'color: #808080; font-style: italic;',
00139                'MULTI' => 'color: #808080; font-style: italic;'
00140                ),
00141           'ESCAPE_CHAR' => array(
00142                0 => 'color: #000099; font-weight: bold;'
00143                ),
00144           'BRACKETS' => array(
00145                0 => 'color: black;'
00146                ),
00147           'STRINGS' => array(
00148                0 => 'color: #483d8b;'
00149                ),
00150           'NUMBERS' => array(
00151                0 => 'color: #ff4500;'
00152                ),
00153           'METHODS' => array(
00154                1 => 'color: black;'
00155                ),
00156           'SYMBOLS' => array(
00157                0 => 'color: #66cc66;'
00158                ),
00159           'REGEXPS' => array(
00160             0 => 'color: #ff3333;'
00161                ),
00162           'SCRIPT' => array(
00163                )
00164           ),
00165      'URLS' => array(
00166           ),
00167      'OOLANG' => true,
00168      'OBJECT_SPLITTERS' => array(
00169           1 => '::'
00170           ),
00171      'REGEXPS' => array(
00172           0 => '[\\$]+[a-zA-Z_][a-zA-Z0-9_]*',
00173           ),
00174      'STRICT_MODE_APPLIES' => GESHI_NEVER,
00175      'SCRIPT_DELIMITERS' => array(
00176           ),
00177      'HIGHLIGHT_STRICT_BLOCK' => array(
00178           )
00179 );
00180 
00181 ?>

Erzeugt am Thu May 14 00:55:48 2009 für OpenRat von  doxygen 1.5.8