dotnet / dotnet/csharp-tmLanguage

Reserved keyword coloring?

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

Description

Would it be possible to get reserved word coloring on variables? It should match the color of the other reserved words, to make it more obvious that the variable name cannot be used.

## Details

What editor are you seeing the problem in? **VS Code**

What version of the editor are you using? **1.22.2 and Insiders 1.23.0**

What color theme are you using? **Dark+ (default)**

## Repro

`var event = new Dictionary();`

Ends up formatted like this, with no obvious sign that `event` is a reserved word:

screen shot 2018-04-17 at 12 07 50 pm

Instead of any reserved word errors, I kept seeing a bunch of (seemingly unrelated) errors in the vicinity of this line of code. I finally opened the project up in Visual Studio for macOS and it became obvious:

screen shot 2018-04-17 at 12 10 31 pm

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.