diff options
Diffstat (limited to 'inc/geshi/csharp.php')
-rw-r--r-- | inc/geshi/csharp.php | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/inc/geshi/csharp.php b/inc/geshi/csharp.php index dfd3e8e8c..6c2491363 100644 --- a/inc/geshi/csharp.php +++ b/inc/geshi/csharp.php @@ -4,13 +4,15 @@ * ---------- * Author: Alan Juden (alan@judenware.org) * Copyright: (c) 2004 Alan Juden, Nigel McNie (http://qbnz.com/highlighter/) - * Release Version: 1.0.7.21 + * Release Version: 1.0.7.22 * Date Started: 2004/06/04 * * C# language file for GeSHi. * * CHANGES * ------- + * 2008/05/25 (1.0.7.22) + * - 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) @@ -43,6 +45,10 @@ 'LANG_NAME' => 'C#', 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), 'COMMENT_MULTI' => array('/*' => '*/'), + 'COMMENT_REGEXP' => array( + //Using and Namespace directives (basic support) + //Please note that the alias syntax for using is not supported + 3 => '/(?:(?<=using[\\n\\s])|(?<=namespace[\\n\\s]))[\\n\\s]*([a-zA-Z0-9_]+\\.)*[a-zA-Z0-9_]+[\n\s]*(?=[;=])/i'), 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 'QUOTEMARKS' => array("'", '"'), 'HARDQUOTE' => array('@"', '"'), @@ -160,8 +166,8 @@ ), ), 'SYMBOLS' => array( - '+', '-', '*', '?', '=', '/', '%', '&', '>', '<', '^', '!', '|', ':', - '(', ')', '{', '}', '[', ']' + '+', '-', '*', '?', '=', '/', '%', '&', '>', '<', '^', '!', ':', ';', + '(', ')', '{', '}', '[', ']', '|' ), 'CASE_SENSITIVE' => array( GESHI_COMMENTS => true, @@ -182,6 +188,7 @@ 'COMMENTS' => array( 1 => 'color: #008080; font-style: italic;', 2 => 'color: #008080;', + 3 => 'color: #008080;', 'MULTI' => 'color: #008080; font-style: italic;' ), 'ESCAPE_CHAR' => array( @@ -191,7 +198,7 @@ 0 => 'color: #000000;' ), 'STRINGS' => array( - 0 => 'color: #808080;' + 0 => 'color: #666666;' ), 'NUMBERS' => array( 0 => 'color: #FF0000;' |