jablonka.czprosek.czf

websvn

Subversion Repositories:
[/] [lib/] [geshi/] [powershell.php] - Diff between revs 1 and 3

Show entire file Ignore whitespace

Rev 1 Rev 3
Line 2... Line 2...
/************************************************************************************* /*************************************************************************************
* powershell.php * powershell.php
* --------------------------------- * ---------------------------------
* Author: Frode Aarebrot (frode@aarebrot.net) * Author: Frode Aarebrot (frode@aarebrot.net)
* Copyright: (c) 2008 Frode Aarebrot (http://www.aarebrot.net) * Copyright: (c) 2008 Frode Aarebrot (http://www.aarebrot.net)
* Release Version: 1.0.8.1 * Release Version: 1.0.8.3
* Date Started: 2008/06/20 * Date Started: 2008/06/20
* *
* PowerShell language file for GeSHi. * PowerShell language file for GeSHi.
* *
* I've tried to make this language file as true to the highlighting in PowerGUI as * I've tried to make this language file as true to the highlighting in PowerGUI as
Line 137... Line 137...
'-Column', '-Class', '-ChildPath', '-Character', '-Certificate', '-CategoryTargetType', '-Column', '-Class', '-ChildPath', '-Character', '-Certificate', '-CategoryTargetType',
'-CategoryTargetName', '-CategoryReason', '-CategoryActivity', '-Category', '-CaseSensitive', '-CategoryTargetName', '-CategoryReason', '-CategoryActivity', '-Category', '-CaseSensitive',
'-Body', '-BinaryPathName', '-Begin', '-BackgroundColor', '-Average', '-AutoSize', '-Audit', '-Body', '-BinaryPathName', '-Begin', '-BackgroundColor', '-Average', '-AutoSize', '-Audit',
'-AsString', '-AsSecureString', '-AsPlainText', '-As', '-ArgumentList', '-AppendPath', '-Append', '-AsString', '-AsSecureString', '-AsPlainText', '-As', '-ArgumentList', '-AppendPath', '-Append',
'-Adjust', '-Activity', '-AclObject' '-Adjust', '-Activity', '-AclObject'
  ),
  6 => array(
  '_','args','DebugPreference','Error','ErrorActionPreference',
  'foreach','Home','Host','Input','LASTEXITCODE','MaximumAliasCount',
  'MaximumDriveCount','MaximumFunctionCount','MaximumHistoryCount',
  'MaximumVariableCount','OFS','PsHome',
  'ReportErrorShowExceptionClass','ReportErrorShowInnerException',
  'ReportErrorShowSource','ReportErrorShowStackTrace',
  'ShouldProcessPreference','ShouldProcessReturnPreference',
  'StackTrace','VerbosePreference','WarningPreference','PWD'
) )
), ),
'SYMBOLS' => array( 'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}', '=', '<', '>', '@', '|', '&', ',', '?', '(', ')', '[', ']', '{', '}', '=', '<', '>', '@', '|', '&', ',', '?',
'+=', '-=', '*=', '/=', '%=', '*', '/', '%', '!', '+', '-', '++', '--' '+=', '-=', '*=', '/=', '%=', '*', '/', '%', '!', '+', '-', '++', '--'
Line 149... Line 159...
GESHI_COMMENTS => false, GESHI_COMMENTS => false,
1 => false, 1 => false,
2 => false, 2 => false,
3 => false, 3 => false,
4 => false, 4 => false,
5 => false 5 => false,
  6 => true
), ),
'STYLES' => array( 'STYLES' => array(
'KEYWORDS' => array( 'KEYWORDS' => array(
1 => 'color: #008080; font-weight: bold;', 1 => 'color: #008080; font-weight: bold;',
2 => 'color: #008080; font-weight: bold;', 2 => 'color: #008080; font-weight: bold;',
3 => 'color: #0000FF;', 3 => 'color: #0000FF;',
4 => 'color: #FF0000;', 4 => 'color: #FF0000;',
5 => 'color: #008080; font-style: italic;', 5 => 'color: #008080; font-style: italic;',
  6 => 'color: #000080;'
), ),
'COMMENTS' => array( 'COMMENTS' => array(
1 => 'color: #008000;', 1 => 'color: #008000;',
'MULTI' => 'color: #008000;' 'MULTI' => 'color: #008000;'
), ),
Line 197... Line 209...
1 => '', 1 => '',
2 => '', 2 => '',
3 => '', 3 => '',
4 => '', 4 => '',
5 => '', 5 => '',
  6 => '',
), ),
'OOLANG' => false, 'OOLANG' => false,
'OBJECT_SPLITTERS' => array( 'OBJECT_SPLITTERS' => array(
), ),
'REGEXPS' => array( 'REGEXPS' => array(
// variables  
0 => "[\\$][a-zA-Z0-9_]*",  
// special after pipe // special after pipe
3 => array( 3 => array(
GESHI_SEARCH => '(\[)(int|long|string|char|bool|byte|double|decimal|float|single|regex|array|xml|scriptblock|switch|hashtable|type|ref|psobject|wmi|wmisearcher|wmiclass|object)((\[.*\])?\])', GESHI_SEARCH => '(\[)(int|long|string|char|bool|byte|double|decimal|float|single|regex|array|xml|scriptblock|switch|hashtable|type|ref|psobject|wmi|wmisearcher|wmiclass|object)((\[.*\])?\])',
GESHI_REPLACE => '\2', GESHI_REPLACE => '\2',
GESHI_MODIFIERS => 'si', GESHI_MODIFIERS => 'si',
Line 231... Line 242...
GESHI_BEFORE => '\1', GESHI_BEFORE => '\1',
GESHI_AFTER => '' GESHI_AFTER => ''
), ),
// Special variables // Special variables
6 => array( 6 => array(
GESHI_SEARCH => '(\$)(\$|\?|\$\^|_|args|DebugPreference|Error|ErrorActionPreference|foreach|Home|Input|LASTEXITCODE|MaximumAliasCount|MaximumDriveCount|MaximumFunctionCount|MaximumHistoryCount|MaximumVariableCount|PsHome|Host|OFS|ReportErrorShowExceptionClass|ReportErrorShowInnerException|ReportErrorShowSource|ReportErrorShowStackTrace|ShouldProcessPreference|ShouldProcessReturnPreference|StackTrace|VerbosePreference|WarningPreference|PWD)', GESHI_SEARCH => '(\$)(\$[_\^]?|\?)(?!\w)',
GESHI_REPLACE => '\1\2', GESHI_REPLACE => '\1\2',
GESHI_MODIFIERS => '', GESHI_MODIFIERS => '',
GESHI_BEFORE => '', GESHI_BEFORE => '',
GESHI_AFTER => '\3' GESHI_AFTER => ''
), ),
  // variables
  //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])",
), ),
'STRICT_MODE_APPLIES' => GESHI_NEVER, 'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array( 'SCRIPT_DELIMITERS' => array(
), ),
'HIGHLIGHT_STRICT_BLOCK' => array( 'HIGHLIGHT_STRICT_BLOCK' => array(
), ),
  'PARSER_CONTROL' => array(
  'KEYWORDS' => array(
  6 => array(
  'DISALLOWED_BEFORE' => '(?<!\$)\$'
  )
  )
  )
); );
   
?> ?>
   

Powered by WebSVN 2.2.1