Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

support for the C# 3.0 language #7

Closed
GoogleCodeExporter opened this issue Apr 22, 2015 · 3 comments
Closed

support for the C# 3.0 language #7

GoogleCodeExporter opened this issue Apr 22, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

Thanks much.  I will try to integrate these changes.

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

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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

  • Changed state: Fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants