Microsoft/monaco-editor

[Bug] Wrong highlight for shell

Open

#2,899 opened on 2022年1月19日

GitHub で見る
 (2 comments) (1 reaction) (0 assignees)JavaScript (1,283 forks)batch import
buggrammarshelp wanted

Repository metrics

Stars
 (14,836 stars)
PR merge metrics
 (平均マージ 6h 26m) (30d で 15 merged PRs)

説明

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

コントリビューターガイド