jeff-hykin / better-shell-syntax

💾 📦 ♻️ An improvement to the shell syntax for VS Code
MIT License
52 stars 4 forks source link

Syntax coloring behavior folllowing <<EOF in bash #61

Closed alexr00 closed 7 months ago

alexr00 commented 1 year ago

Does this issue occur when all extensions are disabled?: Yes

Following #177977 I still got some syntax error with cat<<EOF syntax in bash files

Steps to Reproduce:

The behavior change depending if you write:

#!/usr/bin/env bash

cat <<EOF | sudo tee myfile
{
    "jsonObject": {
        "key1": "value1",
        "key2": "value2"
    }
}
EOF

image

Or (simply remove the space between cat and <<EOF and this is a valid syntax):

#!/usr/bin/env bash

cat<<EOF | sudo tee myfile
{
    "jsonObject": {
        "key1": "value1",
        "key2": "value2"
    }
}
EOF

image

The expected behavior for me is:

There is some good things on both behavior but neither is perfect from my point of vue and it still make syntax coloring inconsistent.

Originally posted by @Arcahub in https://github.com/microsoft/vscode/issues/185119

jeff-hykin commented 7 months ago

Should be fixed as of v1.8.6

punkyard commented 4 months ago

hi if i get it right, the code in EOF blocks should be coloured? so far it isn't is this a bug?