Microsoft/monaco-editor

[Bug] Wrong highlight for shell

Open

#2,899 建立於 2022年1月19日

在 GitHub 查看
 (2 留言) (1 反應) (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

Do not use playground to try this. Using home page editor demo to try the following code.


if [[ -z "${MA5800_ALL_DIR:-}" ]]; then
    MA5800_ALL_DIR=$(realpath "$(dirname "$0")/../../")
fi

Actual Behavior

image

So I tried this code in vs-code, the highlight is correct.

image

Expected Behavior

My expected behavior is the highlight can as same as vs-code

Additional Context

No response

貢獻者指南