dotnet / dotnet/csharp-tmLanguage

C# syntax highlighting is broken by multiline types

Open
#179 4 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
78
Forks
43
Avg merge
34m
Merged PRs (30d)
1

Description

Originally from @svenskmand in https://github.com/microsoft/vscode/issues/96341

- VSCode Version:
Version: 1.44.2 (system setup)
Commit: ff915844119ce9485abfe8aa9076ec76b5300ddd
Date: 2020-04-16T16:36:23.138Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.18363
- OS Version: Windows 10

Steps to Reproduce:

1. Open a new C# file and input the following code
```
namespace Foo {
public interface IBar {
IList Baz(IList>>>>>>> foobar);
}
}
```
2. The type of the `foobar` variable and the rest of the method has a white text color and no syntax highlighting.

This is how the syntax highlighting looks before the line break:
![Without line break]( https://snipboard.io/njzfVS.jpg )

This is how the syntax highlighting looks with the line break:
![With line break]( https://snipboard.io/9Hg4QU.jpg )

Does this issue occur when all extensions are disabled?: Yes

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.