Syntax Highlight Improvement for Nullable Types and Operators
Nobody has claimed this yet.
- 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:

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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