Вход Регистрация
Файл: includes/geshi/geshi/pcre.php
Строк: 94
<?php
/*************************************************************************************
 * pcre.php
 * --------
 * Author: Benny Baumann (BenBE@geshi.org)
 * Copyright: (c) 2010 Benny Baumann (http://qbnz.com/highlighter/)
 * Release Version: 1.0.8.11
 * Date Started: 2010/05/22
 *
 * PCRE language file for GeSHi.
 *
 * NOTE: This language file handles plain PCRE expressions without delimiters.
 * If you want to highlight PCRE with delimiters you should use the
 * Perl language file instead.
 *
 * CHANGES
 * -------
 * 2010/05/22 (1.0.8.8)
 *   -  First Release
 *
 * TODO (updated 2010/05/22)
 * -------------------------
 *
 *************************************************************************************
 *
 *     This file is part of GeSHi.
 *
 *   GeSHi is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   GeSHi is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with GeSHi; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 ************************************************************************************/

$language_data = array (
    
'LANG_NAME' => 'PCRE',
    
'COMMENT_SINGLE' => array(),
    
'COMMENT_MULTI' => array(
        ),
    
'COMMENT_REGEXP' => array(
        
// Non-matching groups
        
=> "/(?<=()?(?::|(?=())/",

        
// Modifier groups
        
=> "/(?<=()?[cdegimopsuxUX-]+(?::|(?=)))/",

        
// Look-Aheads
        
=> "/(?<=()?[!=]/",

        
// Look-Behinds
        
=> "/(?<=()?<[!=]/",

        
// Forward Matching
        
=> "/(?<=()?>/",

        
// Recursive Matching
        
=> "/(?<=()?R(?=))/",

        
// Named Subpattern
        
=> "/(?<=()?(?:P?<w+>|d+(?=))|P[=>]w+(?=)))/",

        
// Back Reference
        
=> "/\\(?:[1-9]d?|gd+|g{(?:-?d+|w+)}|k<w+>|k'w+'|k{w+})/",

        
// Byte sequence: Octal
        
=> "/\\[0-7]{2,3}/",

        
// Byte sequence: Hex
        
10 => "/\\x[0-9a-fA-F]{2}/",

        
// Byte sequence: Hex
        
11 => "/\\u[0-9a-fA-F]{4}/",

        
// Byte sequence: Hex
        
12 => "/\\U[0-9a-fA-F]{8}/",

        
// Byte sequence: Unicode
        
13 => "/\\[pP]{[^}n]+}/",

        
// One-Char Escapes
        
14 => "/\\[abdefnrstvwzABCDGSWXZ\\\.[](){}^\$?+*]/",

        
// Byte sequence: Control-X sequence
        
15 => "/\\c./",

        
// Quantifier
        
16 => "/{(?:d+,?|d*,d+)}/",

        
// Comment Subpattern
        
17 => "/(?<=()?#[^)]*/",
        ),
    
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
    
'QUOTEMARKS' => array(),
    
'ESCAPE_CHAR' => '\',
    '
KEYWORDS' => array(
        ),
    '
SYMBOLS' => array(
        0 => array('
.'),
        1 => array('
(', ')'),
        2 => array('
[', ']', '|'),
        3 => array('
^', '$'),
        4 => array('
?', '+', '*'),
        ),
    '
CASE_SENSITIVE' => array(
        GESHI_COMMENTS => false,
        ),
    '
STYLES' => array(
        '
KEYWORDS' => array(
            ),
        '
COMMENTS' => array(
            1 => '
color#993333; font-weight: bold;',
            
=> 'color: #cc3300; font-weight: bold;',
            
=> 'color: #cc0066; font-weight: bold;',
            
=> 'color: #cc0066; font-weight: bold;',
            
=> 'color: #cc6600; font-weight: bold;',
            
=> 'color: #cc00cc; font-weight: bold;',
            
=> 'color: #cc9900; font-weight: bold; font-style: italic;',
            
=> 'color: #cc9900; font-style: italic;',
            
=> 'color: #669933; font-style: italic;',
            
10 => 'color: #339933; font-style: italic;',
            
11 => 'color: #339966; font-style: italic;',
            
12 => 'color: #339999; font-style: italic;',
            
13 => 'color: #663399; font-style: italic;',
            
14 => 'color: #999933; font-style: italic;',
            
15 => 'color: #993399; font-style: italic;',
            
16 => 'color: #333399; font-style: italic;',
            
17 => 'color: #666666; font-style: italic;',
            
'MULTI' => 'color: #666666; font-style: italic;'
            
),
        
'ESCAPE_CHAR' => array(
            
=> 'color: #000099; font-weight: bold;',
            
'HARD' => 'color: #000099; font-weight: bold;'
            
),
        
'BRACKETS' => array(
            
=> 'color: #009900;'
            
),
        
'STRINGS' => array(
            
=> 'color: #ff0000;',
            ),
        
'NUMBERS' => array(
            
=> 'color: #cc66cc;'
            
),
        
'METHODS' => array(
            
=> 'color: #006600;',
            
=> 'color: #006600;'
            
),
        
'SYMBOLS' => array(
            
=> 'color: #333399; font-weight: bold;',
            
=> 'color: #993333; font-weight: bold;',
            
=> 'color: #339933; font-weight: bold;',
            
=> 'color: #333399; font-weight: bold;',
            
=> 'color: #333399; font-style: italic;'
            
),
        
'REGEXPS' => array(
            ),
        
'SCRIPT' => array(
            )
        ),
    
'URLS' => array(
        ),
    
'OOLANG' => false,
    
'OBJECT_SPLITTERS' => array(
        ),
    
'REGEXPS' => array(
        ),
    
'STRICT_MODE_APPLIES' => GESHI_NEVER,
    
'SCRIPT_DELIMITERS' => array(
        ),
    
'HIGHLIGHT_STRICT_BLOCK' => array(
        ),
    
'PARSER_CONTROL' => array(
        
'ENABLE_FLAGS' => array(
            
'BRACKETS' => GESHI_NEVER,
            
'NUMBERS' => GESHI_NEVER
        
)
    )
);

?>
Онлайн: 2
Реклама