Skip to content
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

@alexr00

Description

@alexr00

From @IceWreck in microsoft/vscode#78034

Steps to Reproduce:

  1. Open a bash script. (.sh file)
  2. 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
  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions