summaryrefslogtreecommitdiff
path: root/inc/geshi/php.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2010-08-29 14:22:01 +0200
committerAndreas Gohr <andi@splitbrain.org>2010-08-29 14:22:01 +0200
commit2c053ed58376c6709596ab48fc40dceb90d4e89d (patch)
treec8d0f78c2f47f373473419396d3c0855ec671eca /inc/geshi/php.php
parentcb4a07568e84d853fbcd9d5eca37f572fa10786f (diff)
parent5479a8c3341247ca228026819f20f3ab5c34a80f (diff)
downloadrpg-2c053ed58376c6709596ab48fc40dceb90d4e89d.tar.gz
rpg-2c053ed58376c6709596ab48fc40dceb90d4e89d.tar.bz2
Merge branch 'master' into stable
Conflicts: conf/msg lib/plugins/acl/ajax.php
Diffstat (limited to 'inc/geshi/php.php')
-rw-r--r--inc/geshi/php.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/inc/geshi/php.php b/inc/geshi/php.php
index b96c947ed..ec6981134 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.8.4
+ * Release Version: 1.0.8.8
* Date Started: 2004/06/20
*
* PHP language file for GeSHi.
@@ -90,14 +90,14 @@ $language_data = array(
'as','break','case','continue','default','do','else','elseif',
'endfor','endforeach','endif','endswitch','endwhile','for',
'foreach','if','include','include_once','require','require_once',
- 'return','switch','while',
+ 'return','switch','throw','while',
'echo','print'
),
2 => array(
'&amp;new','&lt;/script&gt;','&lt;?php','&lt;script language',
'class','const','declare','extends','function','global','interface',
- 'namespace','new','private','public','self','var'
+ 'namespace','new','private','protected','public','self','use','var'
),
3 => array(
'abs','acos','acosh','addcslashes','addslashes','aggregate',
@@ -1077,7 +1077,7 @@ $language_data = array(
3 => array(
'<script language="php">' => '</script>'
),
- 4 => "/(?<start><\\?(?>php\b)?)(?:".
+ 4 => "/(?P<start><\\?(?>php\b)?)(?:".
"(?>[^\"'?\\/<]+)|".
"\\?(?!>)|".
"(?>'(?>[^'\\\\]|\\\\'|\\\\\\\|\\\\)*')|".
@@ -1086,9 +1086,9 @@ $language_data = array(
"\\/\\/(?>.*?$)|".
"\\/(?=[^*\\/])|".
"<(?!<<)|".
- "<<<(?<phpdoc>\w+)\s.*?\s\k<phpdoc>".
- ")*(?<end>\\?>|\Z)/sm",
- 5 => "/(?<start><%)(?:".
+ "<<<(?P<phpdoc>\w+)\s.*?\s\k<phpdoc>".
+ ")*(?P<end>\\?>|\Z)/sm",
+ 5 => "/(?P<start><%)(?:".
"(?>[^\"'%\\/<]+)|".
"%(?!>)|".
"(?>'(?>[^'\\\\]|\\\\'|\\\\\\\|\\\\)*')|".
@@ -1097,8 +1097,8 @@ $language_data = array(
"\\/\\/(?>.*?$)|".
"\\/(?=[^*\\/])|".
"<(?!<<)|".
- "<<<(?<phpdoc>\w+)\s.*?\s\k<phpdoc>".
- ")*(?<end>%>)/sm",
+ "<<<(?P<phpdoc>\w+)\s.*?\s\k<phpdoc>".
+ ")*(?P<end>%>)/sm",
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => true,