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

Shell command in back quotes with << #158

Open
1 task
alexr00 opened this issue Apr 27, 2020 · 0 comments
Open
1 task

Shell command in back quotes with << #158

alexr00 opened this issue Apr 27, 2020 · 0 comments

Comments

@alexr00
Copy link

alexr00 commented Apr 27, 2020

Prerequisites

Description

Tokenization is broken if script has back quotes with <<.

Steps to Reproduce

  1. Create file test.sh
  2. Open test.sh and paste example below
CHANGELOG=`cat << EOF
nginx ($VER-2~$REL) $REL; urgency=low

  * $VER

 -- $CONTRIB_NAME <$CONTRIB_EMAIL>  $DATE
EOF`
  1. Write code below CHANGELOG.

Gist with example
All code below back quotes will be highlighted as 'shell code'.
Expected behavior:

The string and backtick related scopes will end with the closing backtick.

Even after the closing backtick these are the scopes:

string.unquoted.heredoc.shell
string.interpolated.backtick.shell
source.shell

Versions

VS Code version: Code 1.44.2 (ff915844119ce9485abfe8aa9076ec76b5300ddd, 2020-04-16T17:07:18.473Z)
OS version: Darwin x64 17.7.0

Additional Information

Originally from @psycho-coder in microsoft/vscode#96144

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