dosper7 / google-code-prettify

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

Inconsistency in C# syntax #88

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Test this code:

<code>
private static void ElementByElement&lt;T&gt;(T[] arg, int start) {}

private static void ElementByElement2&lt;T&gt;(T[] arg, int start) {}
</code>

What is the expected output?  What do you see instead?

ElementByElement and ElementByElement2 should both be highlighted as method
names. Instead, ElementByElement is highlighted as a type name (this is
Issue #70), and ElementByElement2 is not highlighted at all.

Original issue reported on code.google.com by alexey.v...@gmail.com on 14 Aug 2009 at 10:37

GoogleCodeExporter commented 8 years ago
At least, ElementByElement and ElementByElement2 should definitely be 
highlighted the
same way.

Original comment by alexey.v...@gmail.com on 15 Aug 2009 at 5:26

GoogleCodeExporter commented 8 years ago
Will try to fix the inconsistency.

I do not know enough about C# to fi the larger issue which is already filed as 
issue 70.

Original comment by mikesamuel@gmail.com on 17 Aug 2009 at 3:50

GoogleCodeExporter commented 8 years ago
They are both highlighted as type names on FF 3.5, Safari 3.2.3, and IE 6.  What
browser are you seeing the difference in?

I'm running the test by adding the below to prettify_test.html.
<pre class="prettyprint">
private static void ElementByElement<T>(T[] arg, int start) {}

private static void ElementByElement2<T>(T[] arg, int start) {}
</pre>

Original comment by mikesamuel@gmail.com on 18 Aug 2009 at 5:22