microsoft / microsoft/sarif-web-component

Certain words are being rendered in different color (like special keywords) in spite of no seeming relevance to the code snippet.

Open
#9 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
108
Forks
36
Avg merge
5d 15h
Merged PRs (30d)
3

Description

Consider the following screenshot which renders a snippet from a json file. The word "any" is highlighted as if it was a special keyword, but there is no relevance of this word in json file type.

image

The same is true for other words, like "with", "case", "in".

Expected:
These keywords should be rendered in color only when relevant (e.g. if c# file).

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 source files or tests are named. Reproduce the screenshot with a JSON snippet containing words such as "any", "with", "case", and "in", then trace the component's syntax-highlighting path. Done means these words are colored only when they are relevant to the snippet's language.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.