summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/wp-syntax/geshi/geshi/csharp.php')
-rw-r--r--plugins/wp-syntax/geshi/geshi/csharp.php36
1 files changed, 20 insertions, 16 deletions
diff --git a/plugins/wp-syntax/geshi/geshi/csharp.php b/plugins/wp-syntax/geshi/geshi/csharp.php
index 2d79ee21..1c7eea06 100644
--- a/plugins/wp-syntax/geshi/geshi/csharp.php
+++ b/plugins/wp-syntax/geshi/geshi/csharp.php
@@ -3,16 +3,19 @@
* csharp.php
* ----------
* Author: Alan Juden (alan@judenware.org)
+ * Revised by: Michael Mol (mikemol@gmail.com)
* Copyright: (c) 2004 Alan Juden, Nigel McNie (http://qbnz.com/highlighter/)
- * Release Version: 1.0.8.3
+ * Release Version: 1.0.8.9
* Date Started: 2004/06/04
*
* C# language file for GeSHi.
*
* CHANGES
* -------
+ * 2009/04/03 (1.0.8.6)
+ * - Added missing keywords identified by Rosetta Code users.
* 2008/05/25 (1.0.7.22)
- * - Added highlighting of using and namespace directives as non-OOP
+ * - Added highlighting of using and namespace directives as non-OOP
* 2005/01/05 (1.0.1)
* - Used hardquote support for @"..." strings (Cliff Stanford)
* 2004/11/27 (1.0.0)
@@ -52,18 +55,19 @@ $language_data = array (
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'HARDQUOTE' => array('@"', '"'),
- 'HARDESCAPE' => array('""'),
+ 'HARDESCAPE' => array('"'),
+ 'HARDCHAR' => '"',
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'as', 'auto', 'base', 'break', 'case', 'catch', 'const', 'continue',
'default', 'do', 'else', 'event', 'explicit', 'extern', 'false',
- 'finally', 'fixed', 'for', 'foreach', 'goto', 'if', 'implicit',
- 'in', 'internal', 'lock', 'namespace', 'null', 'operator', 'out',
- 'override', 'params', 'partial', 'private', 'protected', 'public',
- 'readonly', 'ref', 'return', 'sealed', 'stackalloc', 'static',
- 'switch', 'this', 'throw', 'true', 'try', 'unsafe', 'using',
- 'virtual', 'void', 'while'
+ 'finally', 'fixed', 'for', 'foreach', 'from', 'goto', 'if',
+ 'implicit', 'in', 'internal', 'lock', 'namespace', 'null',
+ 'operator', 'out', 'override', 'params', 'partial', 'private',
+ 'protected', 'public', 'readonly', 'ref', 'return', 'sealed',
+ 'select', 'stackalloc', 'static', 'switch', 'this', 'throw', 'true',
+ 'try', 'unsafe', 'using', 'virtual', 'where', 'while', 'yield'
),
2 => array(
'#elif', '#endif', '#endregion', '#else', '#error', '#define', '#if',
@@ -75,7 +79,7 @@ $language_data = array (
4 => array(
'bool', 'byte', 'char', 'class', 'decimal', 'delegate', 'double',
'enum', 'float', 'int', 'interface', 'long', 'object', 'sbyte',
- 'short', 'string', 'struct', 'uint', 'ulong', 'ushort'
+ 'short', 'string', 'struct', 'uint', 'ulong', 'ushort', 'void'
),
5 => array(
'Microsoft.Win32',
@@ -168,7 +172,7 @@ $language_data = array (
),
'SYMBOLS' => array(
'+', '-', '*', '?', '=', '/', '%', '&', '>', '<', '^', '!', ':', ';',
- '(', ')', '{', '}', '[', ']', '|'
+ '(', ')', '{', '}', '[', ']', '|', '.'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
@@ -180,10 +184,10 @@ $language_data = array (
),
'STYLES' => array(
'KEYWORDS' => array(
- 1 => 'color: #0600FF;',
+ 1 => 'color: #0600FF; font-weight: bold;',
2 => 'color: #FF8000; font-weight: bold;',
3 => 'color: #008000;',
- 4 => 'color: #FF0000;',
+ 4 => 'color: #6666cc; font-weight: bold;',
5 => 'color: #000000;'
),
'COMMENTS' => array(
@@ -197,7 +201,7 @@ $language_data = array (
'HARD' => 'color: #008080; font-weight: bold;'
),
'BRACKETS' => array(
- 0 => 'color: #000000;'
+ 0 => 'color: #008000;'
),
'STRINGS' => array(
0 => 'color: #666666;',
@@ -241,9 +245,9 @@ $language_data = array (
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\#>|^])",
- 'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_<\|%\\-])"
+ 'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_%\\-])"
)
)
);
-?>
+?> \ No newline at end of file