Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

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

Open
1 task
dnicolson opened this issue Sep 14, 2022 · 0 comments
Open
1 task

Comments

@dnicolson
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant