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.

Here strings (<<<) cause syntax highlight issues with command substitution #174

@dnicolson

Description

@dnicolson

Prerequisites

Description

Here strings (<<<) when used with command substitution cause two issues:

  • The closing bracket ()) is a different color to the opening one
  • The use of backticks (`) results in improper syntax highlighting on the lines below

Steps to Reproduce

Open the following code in Visual Studio Code:

#!/bin/bash

echo one two
cat <<< $(echo one two)
echo one two

echo one two
cat <<< `echo one two`
echo one two

echo one two
cat <<< $(echo one two)
echo one two

Expected behavior:

The syntax highlighting to be like Atom (version https://github.com/atom/language-shellscript/releases/tag/v0.28.2):
PixelSnap 2022-09-14 at 21 04 08@2x

Actual behavior:

Visual Studio Code (version 4f8d7bb5cc4d1643674551683df10fe552dd5a6f)
PixelSnap 2022-09-14 at 21 04 57@2x

Visual Studio Code is a few commits ahead of Atom, the issue appears to have been introduced in 4f8d7bb.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions