Microsoft/monaco-editor

Improve Python syntax highlighting

Open

#1.762 aberto em 12 de jan. de 2020

Ver no GitHub
 (7 comments) (3 reactions) (0 assignees)JavaScript (1.283 forks)batch import
feature-requestgrammarshelp wanted

Métricas do repositório

Stars
 (14.836 stars)
Métricas de merge de PR
 (Mesclagem média 6h 26m) (15 fundiu PRs em 30d)

Description

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

Guia do colaborador