atom / language-csharp

C# language support for Atom
Other
62 stars 53 forks source link

[C#] colorizer - syntax highlighting error when curly brace in a comment after an assignment #42

Closed aeschli closed 8 years ago

aeschli commented 8 years ago

From @glennc on November 25, 2015 23:9

With the following code:

var a = 0; // {

the // { isn't green like the other comments.

Copied from original issue: Microsoft/vscode#675

aeschli commented 8 years ago

For C# tokenization we use the text mate grammar from https://github.com/atom/language-csharp. I verified that Atom has the same issue, so it's really a grammar issue (and not problem with our text mate engine). I suggest to file the issue there as well.

50Wliu commented 8 years ago

I can't reproduce this using language-csharp v0.11.0: image

@aeschli what version is Code using?

aeschli commented 8 years ago

Hm, sorry, I realize that my test example was not valid code. With valid code all colorizes correctly. I will have to ask the user for a full code example. Sorry for that and thanks for the help.