jeff-hykin / better-shell-syntax

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

Incorrect highlighting for command executed with heredoc followed by arguments #96

Open billyzkid opened 4 months ago

billyzkid commented 4 months ago

The code with a problem is:

source /dev/stdin <<- 'EOF' "arg 1" "arg 2"
    declare -a args=("${@}")
    declare -p args
EOF

It looks like:

Note the first argument is yellow.

image

It should look like:

The arguments should be a consistent color (i.e. orange) as shown in these other valid cases:

image