microsoft / microsoft/monaco-editor

JavaScript syntax highlighting misidentifies `get` as a reserved keyword

Open
#2,676 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug grammars help wanted
Dominant language
JavaScript
Stars
46.8k
Forks
4.1k
Avg merge
17h 58m
Merged PRs (30d)
1

Description

https://microsoft.github.io/monaco-editor/
image

Within Javascript files, the word "get" is highlighted as a reserved word when it shouldn't.

Browser: Checked on Chrome, Mozilla Firefox and MS Edge

import get from 'lodash/get';
const id = get(param1, param2);

Contributor guide

Open the contributing guide

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

Start in the Monaco Editor demo linked in the issue and reproduce the JavaScript example using get as an import and function call. Trace the JavaScript syntax-highlighting entry point, then verify that get is not styled as a reserved word while other reserved words remain correctly highlighted.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.