Microsoft/monaco-editor

Improve Go syntax highlighting

Open

#1.770 aberto em 17 de jan. de 2020

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (1.283 forks)batch import
feature-requestgrammarshelp wantedopen for PR

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.3 Browser: Chrome 79 maybe OS: macOS Mojave Playground code that reproduces the issue:

monaco.editor.create(document.getElementById("container"), {
	value: 'fmt.Println("666")',
	language: "go"
});

How Monaco/Monarch highlights things:

image

How VSCode highlights things:

Also in VSCode (latest, not Insiders) that line of code is highlighted differently once rendered from Markdown, I think it's ok to expect some differences since my editor has a dark background and the rendered Markdown has a light background, but here a method's name is no longer of a different color as far as I can see, and that seems a bit too much of a difference:

Guia do colaborador