microsoft / microsoft/monaco-editor
JavaScript syntax highlighting misidentifies `get` as a reserved keyword
Open
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/

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
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
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