Microsoft/monaco-editor

Lua syntax colorization not working properly [Bug]

Open

#3,444 创建于 2022年12月1日

在 GitHub 查看
 (0 评论) (2 反应) (0 负责人)JavaScript (1,283 fork)batch import
bughelp wantedlanguages-basic

仓库指标

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: "local string = \"Hello World\"\nlocal string_2 = [[Hello World]]\nlocal string_3 = [===[Hello World]===]",
	language: 'lua'
});

Reproduction Steps

Run the Monaco Editor playground code.

Actual (Problematic) Behavior

You will see "string_2" and "string_3" don't get string syntax colorization like in vscode.

Expected Behavior

Nested brackets string should have a syntax colorization like quotes.

Additional Context

No response

贡献者指南