Skip to content
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

Inconsistency in C# syntax #88

Open
GoogleCodeExporter opened this issue Jan 14, 2016 · 3 comments
Open

Inconsistency in C# syntax #88

GoogleCodeExporter opened this issue Jan 14, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 14 Aug 2009 at 10:37

@GoogleCodeExporter
Copy link
Author

At least, ElementByElement and ElementByElement2 should definitely be 
highlighted the
same way.

Original comment by [email protected] on 15 Aug 2009 at 5:26

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 17 Aug 2009 at 3:50

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 18 Aug 2009 at 5:22

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

No branches or pull requests

1 participant