wmjordan / wmjordan/Codist

Syntax Highlight Improvement for Nullable Types and Operators

Open
#93 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

>_<! Highlight question
Dominant language
C#
Stars
394
Forks
36
PR merge metrics
No merged PRs in 30d

Description

It seems that the ? modifier is considered to be an "operator" for the purposes of syntax highlighting in all cases. However, when it comes at the end of the type name: int? or DateTime? or CS8NullableReferenceType? it makes sense to color it the same way as the type name is colored (same color, font, etc.), since here it functions as part of the type definition, not really an operator.

Current coloring:

2019-06-24 12_52_49-DotNet - Microsoft Visual Studio Preview

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by locating Codist's syntax-highlighting entry point and trace how a trailing ? is classified in examples such as int? and DateTime?; done means the modifier uses the type's styling while other operator uses remain unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.