diff options
author | Andreas Gohr <andi@splitbrain.org> | 2009-05-26 11:29:17 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2009-05-26 11:29:17 +0200 |
commit | c490825174ef8849814e5c397430337e4cfe1340 (patch) | |
tree | 2b1a91b1a99ad54f12db0330cca1830dc1eea87f /inc/geshi/powershell.php | |
parent | 129a62b803171ee73157098391ebc16f7e32a07c (diff) | |
download | rpg-c490825174ef8849814e5c397430337e4cfe1340.tar.gz rpg-c490825174ef8849814e5c397430337e4cfe1340.tar.bz2 |
GeSHi update to 1.0.8.4
Ignore-this: 455792081bedfbe25399d53aa7f93da5
darcs-hash:20090526092917-7ad00-0a96ee9fdf0e80d19efa0adce968d10bc00cc5f3.gz
Diffstat (limited to 'inc/geshi/powershell.php')
-rw-r--r-- | inc/geshi/powershell.php | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/inc/geshi/powershell.php b/inc/geshi/powershell.php index 5b9e16bdc..e427059d3 100644 --- a/inc/geshi/powershell.php +++ b/inc/geshi/powershell.php @@ -4,7 +4,7 @@ * --------------------------------- * Author: Frode Aarebrot (frode@aarebrot.net) * Copyright: (c) 2008 Frode Aarebrot (http://www.aarebrot.net) - * Release Version: 1.0.8.3 + * Release Version: 1.0.8.4 * Date Started: 2008/06/20 * * PowerShell language file for GeSHi. @@ -47,7 +47,7 @@ ************************************************************************************/ $language_data = array ( - 'LANG_NAME' => 'posh', + 'LANG_NAME' => 'PowerShell', 'COMMENT_SINGLE' => array(1 => '#'), 'COMMENT_MULTI' => array(), 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, @@ -187,7 +187,7 @@ $language_data = array ( 0 => 'color: #800000;' ), 'NUMBERS' => array( - 0 => 'color: #000000;' + 0 => 'color: #804000;' ), 'METHODS' => array( 0 => 'color: pink;' @@ -211,7 +211,7 @@ $language_data = array ( 3 => '', 4 => '', 5 => '', - 6 => '', + 6 => 'about:blank', ), 'OOLANG' => false, 'OBJECT_SPLITTERS' => array( @@ -254,13 +254,7 @@ $language_data = array ( //BenBE: Please note that changes here and in Keyword group 6 have to be synchronized in order to work properly. //This Regexp must only match, if keyword group 6 doesn't. If this assumption fails //Highlighting of the keywords will be incomplete or incorrect! - 0 => "(?<!\\\$|>)[\\\$](?!(?:DebugPreference|Error(?:ActionPreference)?|". - "Ho(?:me|st)|Input|LASTEXITCODE|Maximum(?:AliasCount|DriveCount|". - "FunctionCount|HistoryCount|VariableCount)|OFS|P(?:WD|sHome)|". - "ReportErrorShow(?:ExceptionClass|InnerException|S(?:ource|". - "tackTrace))|S(?:houldProcess(?:Preference|ReturnPreference)|". - "tackTrace)|VerbosePreference|WarningPreference|_|args|foreach)\W)". - "(\w+)(?=[^|\w])", + 0 => "(?<!\\\$|>)[\\\$](\w+)(?=[^|\w])", ), 'STRICT_MODE_APPLIES' => GESHI_NEVER, 'SCRIPT_DELIMITERS' => array( @@ -269,8 +263,12 @@ $language_data = array ( ), 'PARSER_CONTROL' => array( 'KEYWORDS' => array( + 4 => array( + 'DISALLOWED_AFTER' => '(?![a-zA-Z])', + 'DISALLOWED_BEFORE' => '' + ), 6 => array( - 'DISALLOWED_BEFORE' => '(?<!\$)\$' + 'DISALLOWED_BEFORE' => '(?<!\$>)\$' ) ) ) |