You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const value = `typedef struct {
xchar class;
} foo;`;
// Hover on each property to see its docs!
const myEditor = monaco.editor.create(document.getElementById("container"), {
value,
language: "cpp",
});
It seems like not just "class" but all the keywords which where added in C++ but not present in C are highlighted as keyword.
I looked into it and it seems there is no special file made for C language in basic languages folder. The keywords returned for .c extension is same as the ones returned for .cpp
Take a look at this
What we can do is make a new folder for C language in basic languages.
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
Monaco Editor Playground Link
Monaco Editor Playground Code
Reproduction Steps
c
Actual (Problematic) Behavior
See that
class
is highlighted as keywordExpected Behavior
class
is no keyword in C, it should be highlighted like any other variableAdditional Context
No response
The text was updated successfully, but these errors were encountered: