-
Notifications
You must be signed in to change notification settings - Fork 112
C# Scanner #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have tried this scanner, and it works ok, but unfortunately it breaks with a simple case: public void TestCode() { Console.WriteLine("breaks here"); } It produces this error:***ERROR in scanner.rb:200:in `tokenize': Unknown token content type: :open, kind = :string (after 0 tokens) tokens: current line: 3 column: 23 pos: 47 matched: "\"" state: "Error in CodeRay::Scanners::CSharp#scan_tokens, initial state was: nil" bol? = false, eos? = false surrounding code: "ode()\n{\n Console.WriteLine(\"" ~~ "breaks here\");\n}\n" ***ERROR*** Unfortunately, I'm not a Ruby dev, so I could not really locate the problem. Any help will be highly appreciated. |
So, a bug report for a pull request ^^ Does Joshua Galvez have a GitHub account so we can inform him? |
Hmmm, I just read the "current" java scanner. It's a lot different than this old code. I guess it'll need a total rewrite in order to be used with the current coderay. |
You're right, the error does seem to result from incompatiblity. |
As I'm not ruby dev, but have very good knowledge of c#, how can I help modifying the existing java scanner to create a new c# one? |
Ey, dudes! It will be great to have a scanner of C# (we use it intensively in Redmine environment). |
There's a scanner for C# attached to http://www.redmine.org/boards/3/topics/11616#message-37780 that should work with Coderay 1.0.x, I haven't tried it though. |
I have wrote another C# scanner: #186 |
👍 |
Great news! |
There are some bugs, so I withdraw this request #186 . I'm now fixing bugs in https://github.com/ganaware/coderay/tree/csharp-scanner , Please try it. |
From Redmine: http://odd-eyed-code.org/issues/78
The text was updated successfully, but these errors were encountered: