This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Wrong Syntax Highlighting on mid line # #150
Open
Description
From @IceWreck in microsoft/vscode#78034
Steps to Reproduce:
- Open a bash script. (.sh file)
- Write some code and then type
#
in the same line. Example :
sudo dnf remove -y \
krdc \
kmail \
kgpg \
krusader \ # the old kde twinstyle file manager
kruler
- Everything after
#
is greyed out and vscode thinks that its a comment, misleading the user
This is wrong, as bash does not consider everything after #
as a comment and running the script can lead to disastrous results as it would remove the file package, which is somehow a dependency for essential packages and removing it can break the system.