nbell12 / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

support for the C# 3.0 language #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I've wrote an extension to prettify the C# 3.0 language specification.

Thanks for this great tool!

Original issue reported on code.google.com by noisef...@gmail.com on 26 Mar 2007 at 2:23

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks much.  I will try to integrate these changes.

Original comment by mikesamuel@gmail.com on 27 Mar 2007 at 6:54

GoogleCodeExporter commented 8 years ago
Patch is below.

=====================================================
--- prettify.js-r20     2007-03-29 21:10:55.000000000 -0700
+++ prettify.js 2007-03-29 21:09:25.000000000 -0700
@@ -72,6 +72,13 @@
     "interface long native new null package private protected public return " +
     "short static super switch synchronized this throw throws transient " +
     "true try typeof var void volatile while with NaN Infinity");
+  var CSHARP_KEYWORDS = (
+    "abstract as base bool break by byte case catch char checked class const
continue " +
+    "decimal default delegate do double descending explicit event extern else 
enum
false finally " +
+    "fixed float for foreach from goto group if implicit in int " +
+    "interface internal into is lock long new null namespace object operator 
out
override orderby params private protected public readonly ref return " +
+    "sbyte sealed short sizeof stackalloc static string switch struct select 
this
throw " +
+    "true try typeof uint ulong unchecked unsafe ushort using var virtual void
volatile while where yield");
   var PERL_KEYWORDS = (
     "foreach require sub unless until use elsif BEGIN END");
   var SH_KEYWORDS = (
@@ -80,8 +87,8 @@
       "if then elsif else end begin do rescue ensure while for class module " +
       "def yield raise until unless and or not when case super undef break " +
       "next redo retry in return alias defined");
-  var KEYWORDS = [CPP_KEYWORDS, JAVA_KEYWORDS, JSCRIPT_KEYWORDS, PERL_KEYWORDS,
-                  PYTHON_KEYWORDS, RUBY_KEYWORDS, SH_KEYWORDS];
+  var KEYWORDS = [CPP_KEYWORDS, JAVA_KEYWORDS, JSCRIPT_KEYWORDS, 
CSHARP_KEYWORDS,
+                                       PERL_KEYWORDS, PYTHON_KEYWORDS,
RUBY_KEYWORDS, SH_KEYWORDS];
   for (var k = 0; k < KEYWORDS.length; k++) {
     var kw = KEYWORDS[k].split(' ');
     for (var i = 0; i < kw.length; i++) {

Original comment by mikesamuel@gmail.com on 30 Mar 2007 at 4:15

GoogleCodeExporter commented 8 years ago
patched in

http://google-code-prettify.googlecode.com/svn/trunk/CHANGES.html.

Original comment by mikesamuel@gmail.com on 2 Apr 2007 at 6:47