dos.php

gehe zur Dokumentation dieser Datei
00001 <?php
00002 /*************************************************************************************
00003  * dos.php
00004  * -------
00005  * Author: Alessandro Staltari (staltari@geocities.com)
00006  * Copyright: (c) 2005 Alessandro Staltari (http://www.geocities.com/SiliconValley/Vista/8155/)
00007  * Release Version: 1.0.7.20
00008  * Date Started: 2005/07/05
00009  *
00010  * DOS language file for GeSHi.
00011  *
00012  * CHANGES
00013  * -------
00014  * 2005/07/05 (1.0.0)
00015  *  -  First Release
00016  *
00017  * TODO (updated 2005/07/05)
00018  * -------------------------
00019  *
00020  * - Find a way to higlight %*
00021  * - Highlight pipes and redirection (do we really need this?)
00022  * - Add missing keywords.
00023  * - Find a good hyperlink for keywords.
00024  * - Improve styles.
00025  *
00026  * KNOWN ISSUES (updated 2005/07/07)
00027  * ---------------------------------
00028  *
00029  * - Doesn't even try to handle spaces in variables name or labels (I can't
00030  *   find a reliable way to establish if a sting is a name or not, in some
00031  *   cases it depends on the contex or enviroment status).
00032  * - Doesn't handle %%[letter] pseudo variable used inside FOR constructs
00033  *   (it should be done only into its scope: how to handle variable it?).
00034  * - Doesn't handle %~[something] pseudo arguments.
00035  * - If the same keyword is placed at the end of the line and the
00036  *   beginning of the next, the second occourrence is not highlighted
00037  *   (this should be a GeSHi bug, not related to the language definition).
00038  * - I can't avoid to have keyword highlighted even when they are not used
00039  *   as keywords but, for example, as arguments to the echo command.
00040  *
00041  *************************************************************************************
00042  *
00043  *     This file is part of GeSHi.
00044  *
00045  *   GeSHi is free software; you can redistribute it and/or modify
00046  *   it under the terms of the GNU General Public License as published by
00047  *   the Free Software Foundation; either version 2 of the License, or
00048  *   (at your option) any later version.
00049  *
00050  *   GeSHi is distributed in the hope that it will be useful,
00051  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00052  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00053  *   GNU General Public License for more details.
00054  *
00055  *   You should have received a copy of the GNU General Public License
00056  *   along with GeSHi; if not, write to the Free Software
00057  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00058  *
00059  ************************************************************************************/
00060 
00061 $language_data = array (
00062      'LANG_NAME' => 'DOS',
00063      'COMMENT_SINGLE' => array(1 =>'REM', 2 => '@REM'),
00064      'COMMENT_MULTI' => array(),
00065      'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
00066      'QUOTEMARKS' => array(),
00067      'ESCAPE_CHAR' => '',
00068      'KEYWORDS' => array(
00069          /* Flow control keywords */
00070           1 => array(
00071                'if', 'else', 'goto',
00072                'for', 'in', 'do',
00073                'call', 'exit'
00074                ),
00075          /* IF statement keywords */
00076           2 => array(
00077                'not', 'exist', 'errorlevel',
00078                'defined',
00079                'equ', 'neq', 'lss', 'leq', 'gtr', 'geq'
00080                ),
00081          /* Internal commands */
00082           3 => array(
00083                'shift',
00084                'cd', 'dir', 'echo',
00085                'setlocal', 'endlocal', 'set',
00086                'pause'
00087                ),
00088          /* Special files */
00089 
00090           4 => array(
00091                'prn', 'nul', 'lpt3', 'lpt2', 'lpt1', 'con',
00092                'com4', 'com3', 'com2', 'com1', 'aux'
00093                )
00094           ),
00095      'SYMBOLS' => array(
00096           '(', ')'
00097           ),
00098      'CASE_SENSITIVE' => array(
00099           GESHI_COMMENTS => false,
00100           1 => false
00101           ),
00102      'STYLES' => array(
00103           'KEYWORDS' => array(
00104                1 => 'color: #00b100; font-weight: bold;',
00105                2 => 'color: #000000; font-weight: bold;',
00106                3 => 'color: #b1b100; font-weight: bold;',
00107                4 => 'color: #0000ff; font-weight: bold;'
00108                ),
00109           'COMMENTS' => array(
00110                1 => 'color: #808080; font-style: italic;',
00111                2 => 'color: #808080; font-style: italic;'
00112                ),
00113           'ESCAPE_CHAR' => array(
00114                ),
00115           'BRACKETS' => array(
00116                0 => 'color: #66cc66;'
00117                ),
00118           'STRINGS' => array(
00119                0 => 'color: #ff0000;'
00120                ),
00121           'NUMBERS' => array(
00122 /*             0 => 'color: #cc66cc;' */
00123                ),
00124           'METHODS' => array(
00125                ),
00126           'SYMBOLS' => array(
00127                0 => 'color: #33cc33;',
00128                1 => 'color: #33cc33;'
00129                ),
00130           'SCRIPT' => array(
00131                ),
00132           'REGEXPS' => array(
00133                0 => 'color: #b100b1; font-weight: bold;',
00134                1 => 'color: #448844;',
00135                2 => 'color: #448888;'
00136                )
00137           ),
00138      'OOLANG' => false,
00139      'OBJECT_SPLITTERS' => array(
00140           ),
00141     'URLS' => array(
00142          1 => 'http://www.ss64.com/nt/{FNAME}.html',
00143          2 => 'http://www.ss64.com/nt/{FNAME}.html',
00144          3 => 'http://www.ss64.com/nt/{FNAME}.html',
00145          4 => 'http://www.ss64.com/nt/{FNAME}.html'
00146          ),
00147      'REGEXPS' => array(
00148      /* Label */
00149          0 => array(
00150 /*        GESHI_SEARCH => '((?si:[@\s]+GOTO\s+|\s+:)[\s]*)((?<!\n)[^\s\n]*)',*/
00151           GESHI_SEARCH => '((?si:[@\s]+GOTO\s+|\s+:)[\s]*)((?<!\n)[^\n]*)',
00152           GESHI_REPLACE => '\\2',
00153           GESHI_MODIFIERS => 'si',
00154           GESHI_BEFORE => '\\1',
00155           GESHI_AFTER => ''
00156           ),
00157      /* Variable assignement */
00158          1 => array(
00159 /*        GESHI_SEARCH => '(SET[\s]+(?si:/A[\s]+|/P[\s]+|))([^=\s\n]+)([\s]*=)',*/
00160           GESHI_SEARCH => '(SET[\s]+(?si:/A[\s]+|/P[\s]+|))([^=\n]+)([\s]*=)',
00161           GESHI_REPLACE => '\\2',
00162           GESHI_MODIFIERS => 'si',
00163           GESHI_BEFORE => '\\1',
00164           GESHI_AFTER => '\\3'
00165           ),
00166      /* Arguments or variable evaluation */
00167          2 => array(
00168 /*        GESHI_SEARCH => '(%)([\d*]|[^%\s]*(?=%))((?<!%\d)%|)',*/
00169           GESHI_SEARCH => '(%)([\d*]|[^%]*(?=%))((?<!%\d)%|)',
00170           GESHI_REPLACE => '\\2',
00171           GESHI_MODIFIERS => 'si',
00172           GESHI_BEFORE => '\\1',
00173           GESHI_AFTER => '\\3'
00174           )
00175           ),
00176      'STRICT_MODE_APPLIES' => GESHI_NEVER,
00177      'SCRIPT_DELIMITERS' => array(
00178           ),
00179      'HIGHLIGHT_STRICT_BLOCK' => array(
00180           )
00181 );
00182 
00183 ?>

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