Microsoft/monaco-editor

[Bug] `int` in Rust highlighted as a type

Open

#3,123 创建于 2022年5月31日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)JavaScript (1,283 fork)batch import
buggrammarshelp wanted

仓库指标

Star
 (14,836 star)
PR 合并指标
 (平均合并 6小时 26分钟) (30 天内合并 15 个 PR)

描述

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

Monaco Editor Playground Code

monaco.editor.create(document.getElementById('container'), {
	value: "fn int() {}\nfn other() {}",
	language: 'rust'
});

Actual Behavior

int highlighted as a type.

Expected Behavior

int not highlighted as a type.

Additional Context

No response

贡献者指南