Microsoft/monaco-editor

Improve Python syntax highlighting

Open

#1762 aperta il 12 gen 2020

Vedi su GitHub
 (7 commenti) (3 reazioni) (0 assegnatari)JavaScript (1283 fork)batch import
feature-requestgrammarshelp wanted

Metriche repository

Star
 (14.836 star)
Metriche merge PR
 (Merge medio 6h 26m) (15 PR mergiate in 30 g)

Descrizione

monaco-editor version: 0.19.2 Browser: Chrome 79 maybe OS: macOS Mojave Playground code that reproduces the issue:

monaco.editor.create(document.getElementById("container"), {
	value: "from functions import sum, average",
	language: "python"
});

Basically some import statements in Python aren't highlighted properly.

How Monaco/Monarch highlights things:

image

How VSCode highlights things:

image

Guida contributor