Microsoft/monaco-editor

JavaScript syntax highlighting misidentifies `get` as a reserved keyword

Open

#2,676 opened on Sep 29, 2021

 (0 comments) (0 reactions) (0 assignees)JavaScript (4,064 forks)batch import
buggrammarshelp wanted

Repository metrics

Stars
 (46,002 stars)
PR merge metrics
 (PR metrics pending)

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