monaco-editor icon indicating copy to clipboard operation
monaco-editor copied to clipboard

[Bug] Wrong highlight for shell

Open ricenoddle opened this issue 4 years ago • 2 comments

Reproducible in vscode.dev or in VS Code Desktop?

  • [X] 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

ricenoddle avatar Jan 19 '22 03:01 ricenoddle

Looks like the last quotation mark is also wrong. We're more than happy to accept a PR for this!

hediet avatar Jan 19 '22 08:01 hediet

Yes, looks like the last quote make the monarch think the quotation is not finished

ricenoddle avatar Jan 19 '22 08:01 ricenoddle