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.

Shell Script grammar classifies variable as source.shell #130

Open

Description

@alexr00

In this example:

#!/bin/bash
file="current_line.txt"

file is classified as source.shell. It seems like it should be classified as a variable.

@agenciah1code for FYI
Copied from original issue: microsoft/vscode#62723

Activity

  1. changed the title [-]Shell Script and Bash Commands Highlight[/-] [+]Shell Script grammar classifies variable as source.shell[/+] on Nov 8, 2018
  2. kinoute commented on Jan 9, 2019

    @kinoute

    Any news on this? In my case, it's more about other shell functions like ssh that are not supported and are classified as source.shell as well.

    Also, arguments don't have a proper color.

    Sublime:
    capture d ecran 2019-01-09 a 22 37 40

    VSCode:
    capture d ecran 2019-01-09 a 22 37 51

  3. crankedguy commented on Feb 19, 2019

    @crankedguy

    Yes, sadly there are a lot of other shell functions/commands not classified as @kinoute said like cat, systemctl and so much more. Would be great if they would be classified somehow so they could be colorized. But I can see that the focus in the builtin shellscript language grammar was only on bash-builtin commands. So is there any way we can get other shell commands as the few shell-builtin to be recognized or would we have to write this on our own?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions