diff options
author | Andreas Gohr <andi@splitbrain.org> | 2008-03-26 22:17:55 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2008-03-26 22:17:55 +0100 |
commit | d09ae2055575141a00e67faeadb9bcb3d8285f3f (patch) | |
tree | 5f8f372f379b77f8f36805468d4e60fdb8ebc1b5 /inc/geshi/php.php | |
parent | 3d1f9ec3674462e63f4195dd834603148a7c7b42 (diff) | |
download | rpg-d09ae2055575141a00e67faeadb9bcb3d8285f3f.tar.gz rpg-d09ae2055575141a00e67faeadb9bcb3d8285f3f.tar.bz2 |
GeSHi update to 1.0.7.21
darcs-hash:20080326211755-7ad00-98c89cb8da99fab17b88222d33a312a020527cdb.gz
Diffstat (limited to 'inc/geshi/php.php')
-rw-r--r-- | inc/geshi/php.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/inc/geshi/php.php b/inc/geshi/php.php index 1f8779220..1e9bb49a3 100644 --- a/inc/geshi/php.php +++ b/inc/geshi/php.php @@ -4,7 +4,7 @@ * -------- * Author: Nigel McNie (nigel@geshi.org) * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/) - * Release Version: 1.0.7.20 + * Release Version: 1.0.7.21 * Date Started: 2004/06/20 * * PHP language file for GeSHi. @@ -258,7 +258,11 @@ $language_data = array ( ) ), 'SYMBOLS' => array( - '(', ')', '[', ']', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>' + '(', ')', '[', ']', '{', '}', + '!', '@', '%', '&', '|', '/', + '<', '>', + '=', '-', '+', '*', + '.', ':', ',', ';' ), 'CASE_SENSITIVE' => array( GESHI_COMMENTS => false, @@ -319,14 +323,14 @@ $language_data = array ( 2 => '::' ), 'REGEXPS' => array( - 0 => "[\\$]{1,2}[a-zA-Z_][a-zA-Z0-9_]*", - 1 => array( - GESHI_SEARCH => "([a-zA-Z]+)(\n)(.*)(\n)(\\1;?)", + 0 => array( + GESHI_SEARCH => "([a-zA-Z]+)(\\n)(.*?)(\\n)(\\1[^a-zA-Z0-9])", GESHI_REPLACE => '\3', GESHI_BEFORE => '\1\2', GESHI_AFTER => '\4\5', GESHI_MODIFIERS => 'siU' - ) + ), + 1 => "[\\$]{1,2}[a-zA-Z_][a-zA-Z0-9_]*" ), 'STRICT_MODE_APPLIES' => GESHI_MAYBE, 'SCRIPT_DELIMITERS' => array( |