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

Syntax highlighting lost after certain comments #1659

Closed
cateyes99 opened this issue Jul 23, 2017 · 2 comments
Closed

Syntax highlighting lost after certain comments #1659

cateyes99 opened this issue Jul 23, 2017 · 2 comments

Comments

@cateyes99
Copy link

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.1)

Product Information:
 Version:            1.0.1
 Commit SHA-1 hash:  005db40cd1

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.11
 OS Platform: Darwin
 RID:         osx.10.11-x64
 Base Path:   /usr/local/share/dotnet/sdk/1.0.1

VS Code version: 1.14.2
C# Extension version: 1.11.0

Steps to reproduce

Create below C# snippet
image

Expected behavior

The method F2() should still have correct syntax highlighting.

Actual behavior

The method F2() doesn't have correct syntax highlighting.

I notice:
if I remove the Line 9, the the syntax highlighting is back:
image

or remove the namespance, the the syntax highlighting is also back:
image

@DustinCampbell
Copy link
Member

This issue was moved to dotnet/csharp-tmLanguage#80

@DustinCampbell
Copy link
Member

Moved over to the csharp-tmLanguage repo where the C# TextMate grammar lives. Note that syntax highlighting in VS Code isn't syntactic at all. Instead, it's handled via regular expressions and is very easy to "trick".

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

No branches or pull requests

2 participants