microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.07k stars 29.21k forks source link

Syntax highlighting bug, with quotes, in bash shell script #106078

Closed HA3IK closed 4 years ago

HA3IK commented 4 years ago

Steps to Reproduce:

  1. The line looks fine and is working.
  2. Open this file: yii2-app-basic/vagrant/provision/once-as-root.sh (GitHub highlighting also is failed)
  3. And we see the following syntax highlighting in VSCode: VS Code's syntax highlighting bug

As I noticed, you have a lot of issues where quotes break the syntax highlighting of the bash shell 😅

Does this issue occur when all extensions are disabled?: Yes

vscodebot[bot] commented 4 years ago

(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

alexr00 commented 4 years ago

We get our grammar for shell script syntax highlighting from https://github.com/atom/language-shellscript, but they aren't supporting the grammar anymore. I'll keep this bug around in case we update where we get our grammar from.

alexr00 commented 4 years ago

Linking and closing in favor of #77675, which tracks considering a new shellscript grammar.