reg.php

gehe zur Dokumentation dieser Datei
00001 <?php
00002 /*************************************************************************************
00003  * reg.php
00004  * -------
00005  * Author: Sean Hanna (smokingrope@gmail.com)
00006  * Copyright: (c) 2006 Sean Hanna 
00007  * Release Version: 1.0.7.20
00008  * Date Started: 03/15/2006
00009  *
00010  * Microsoft Registry Editor Language File.
00011  *
00012  * CHANGES
00013  * -------
00014  * 03/15/2006 (0.5.0)
00015  *  -  Syntax File Created
00016  * 04/27/2006 (0.9.5)
00017  *  - Syntax Coloring Cleaned Up
00018  *  - First Release
00019  * 04/29/2006 (1.0.0)
00020  *  - Updated a few coloring settings
00021  *
00022  * TODO (updated 4/27/2006)
00023  * -------------------------
00024  * - Add a verification to the multi-line portion of the hex field regex
00025  *    for a '\' character on the line preceding the line of the multi-line
00026  *    hex field.
00027  *
00028  * KNOWN ISSUES (updated 4/27/2006)
00029  * ---------------------------------
00030  *
00031  * - There are two regexes for the multiline hex value regex. The regex for
00032  *        all lines after the first does not verify that the previous line contains
00033  *        a line continuation character '\'. This regex also does not check for 
00034  *        end of line as it should.
00035  *
00036  * - If number_highlighting is enabled during processing of this syntax file
00037  *    many of the regexps used will appear slightly incorrect.
00038  *
00039  *************************************************************************************
00040  *
00041  *     This file is part of GeSHi.
00042  *
00043  *   GeSHi is free software; you can redistribute it and/or modify
00044  *   it under the terms of the GNU General Public License as published by
00045  *   the Free Software Foundation; either version 2 of the License, or
00046  *   (at your option) any later version.
00047  *
00048  *   GeSHi is distributed in the hope that it will be useful,
00049  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00050  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00051  *   GNU General Public License for more details.
00052  *
00053  *   You should have received a copy of the GNU General Public License
00054  *   along with GeSHi; if not, write to the Free Software
00055  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00056  *
00057 
00058  ************************************************************************************/
00059 $language_data = array (
00060      'LANG_NAME' => 'Microsoft Registry',
00061      'COMMENT_SINGLE' => array(1 =>';'),
00062      'COMMENT_MULTI' => array( ),
00063      'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
00064      'QUOTEMARKS' => array(),
00065      'ESCAPE_CHAR' => '',
00066      'KEYWORDS' => array(
00067           1 => array(),
00068           2 => array()
00069          /* Registry Key Constants Not Used
00070           3 => array(
00071                'HKEY_LOCAL_MACHINE', 
00072                'HKEY_CLASSES_ROOT', 
00073                'HKEY_CURRENT_USER',
00074                'HKEY_USERS', 
00075                'HKEY_CURRENT_CONFIG', 
00076                'HKEY_DYN_DATA',
00077                'HKLM', 'HKCR', 'HKCU', 'HKU', 'HKCC', 'HKDD'
00078                )/***/
00079           ),
00080      'SYMBOLS' => array( ),
00081      'CASE_SENSITIVE' => array(
00082           GESHI_COMMENTS => false,
00083           1 => false,
00084           2 => false
00085           ),
00086      'STYLES' => array(
00087           'KEYWORDS' => array( 1 => 'color: #00CCFF;',
00088                                     2 => 'color: #0000FF;' ),
00089           'COMMENTS' => array( 1 => 'color: #009900;' ),
00090           'ESCAPE_CHAR' => array(),
00091           'BRACKETS' => array(0 => 'color: #000000;'),
00092           'STRINGS' => array( 0 => 'color: #009900;' ),
00093           'NUMBERS' => array(),
00094           'METHODS' => array(),
00095           'SYMBOLS' => array(0 => 'color: #000000;'),
00096           'SCRIPT' => array(),
00097           'REGEXPS' => array( 
00098                0 => '',
00099                1 => 'color: #0000FF;',
00100                2 => '',
00101                3 => '',
00102                4 => 'color: #0000FF;',
00103                5 => '',
00104                6 => '',
00105                7 => '',
00106                8 => '',
00107                9 => 'color: #FF6600;',
00108                )
00109           ),
00110      'OOLANG' => false,
00111      'OBJECT_SPLITTERS' => array(
00112           ),
00113      'REGEXPS' => array(
00114           // Highlight Key Delimiters
00115           0 => array(
00116                GESHI_SEARCH => '((^|\\n)\\s*)(\\\\\\[(.*)\\\\\\])(\\s*(\\n|$))',
00117                GESHI_REPLACE => '\\3',
00118                GESHI_MODIFIERS => '',
00119                GESHI_BEFORE => '\\1',
00120                GESHI_AFTER => '\\5',
00121                GESHI_CLASS => 'kw1'
00122                ),
00123           // Highlight File Format Header Version 5
00124           1 => array(
00125                GESHI_SEARCH => '((\\n|^)\\s*)(Windows Registry Editor Version [0-9]+(.)+([0-9]+))((\\n|$)\\s*)',
00126                GESHI_REPLACE => '\\3',
00127                GESHI_MODIFIERS => '',
00128                GESHI_BEFORE => '\\1',
00129                GESHI_AFTER => '\\6',
00130                GESHI_CLASS => 'geshi_registry_header'
00131                ),
00132           // Highlight File Format Header Version 4
00133           2 => array(
00134                GESHI_SEARCH => '((\\n|^)\\s*)(REGEDIT [0-9]+)(\\s*(\\n|$))',
00135                GESHI_REPLACE => '\\3',
00136                GESHI_MODIFIERS => '',
00137                GESHI_BEFORE => '\\1',
00138                GESHI_AFTER => '\\4',
00139                GESHI_CLASS => 'geshi_registry_header'
00140                ),
00141           // Highlight dword: 32 bit integer values
00142           3 => array(
00143                GESHI_SEARCH => '(=\\s*)(dword:[0-9]{8})(\\s*(\\n|$))',
00144                GESHI_REPLACE => '\\2',
00145                GESHI_MODIFIERS => '',
00146                GESHI_BEFORE => '\\1',
00147                GESHI_AFTER => '\\3',
00148                GESHI_CLASS => 'kw2'
00149                ),             
00150           // Highlight variable names
00151           4 => array(
00152                GESHI_SEARCH => '((\\n|^)\\s*\\&quot\\;)(.*)(\\&quot\\;\\s*=)',
00153                GESHI_REPLACE => '\\3',
00154                GESHI_MODIFIERS => '',
00155                GESHI_BEFORE => '\\1',
00156                GESHI_AFTER => '\\4',
00157                GESHI_CLASS => 'geshi_variable'
00158                ),
00159           // Highlight String Values
00160           5 => array(
00161                GESHI_SEARCH => '(=\\s*)(\\&quot\\;.*\\&quot\\;)(\\s*(\\n|$))',
00162                GESHI_REPLACE => '\\2',
00163                GESHI_MODIFIERS => '',
00164                GESHI_BEFORE => '\\1',
00165                GESHI_AFTER => '\\3',
00166                GESHI_CLASS => 'st0'
00167                ),
00168           // Highlight Hexadecimal Values
00169           6 => array(
00170                GESHI_SEARCH => '(=\\s*)(hex((\\\\\\([0-9]{1,2}\\\\\\))|()):(([0-9a-fA-F]{2},)|(\\s))*(([0-9a-fA-F]{2})|(\\\\\\\\)))(\\s*(\\n|$))',
00171                GESHI_REPLACE => '\\2',
00172                GESHI_MODIFIERS => '',
00173                GESHI_BEFORE => '\\1',
00174                GESHI_AFTER => '\\12',
00175                GESHI_CLASS => 'kw2'
00176                ),
00177           // Highlight Hexadecimal Values (Multi-Line)
00178           7 => array(
00179                GESHI_SEARCH => '((\\n|^)\\s*)((([0-9a-fA-F]{2},)|(\\s))*(([0-9a-fA-F]{2})|(\\\\\\\\)))',
00180                GESHI_REPLACE => '\\3',
00181                GESHI_MODIFIERS => '',
00182                GESHI_BEFORE => '\\1',
00183                GESHI_AFTER => '\\10',
00184                GESHI_CLASS => 'kw2'
00185                ),
00186           // Highlight Default Variable
00187           8 => array(
00188                GESHI_SEARCH => '((\\n|^)\\s*)(@)(\\s*=)',
00189                GESHI_REPLACE => '\\3',
00190                GESHI_MODIFIERS => '',
00191                GESHI_BEFORE => '\\1',
00192                GESHI_AFTER => '\\4',
00193                GESHI_CLASS => 'geshi_variable'
00194                ),
00195           // Highlight GUID's found anywhere.
00196           9 => array(
00197                GESHI_SEARCH => '(\\{[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}\\})',
00198                GESHI_REPLACE => '\\1',
00199                GESHI_MODIFIERS => '',
00200                GESHI_BEFORE => '',
00201                GESHI_AFTER => '',
00202                GESHI_CLASS => 'geshi_guid'
00203                )
00204           ),
00205      'STRICT_MODE_APPLIES' => GESHI_NEVER,
00206      'SCRIPT_DELIMITERS' => array(
00207           ),
00208      'HIGHLIGHT_STRICT_BLOCK' => array(
00209           )
00210 );
00211 if (isset($this) && is_a($this, 'GeSHi')) {
00212     $this->set_numbers_highlighting(false);
00213 }
00214 ?>

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