Bash highlight for heredoc syntax

Hi,

So, when using heredoc inside bash syntax highlight stops working.
with this example you can see how cat <<'EOF' and cat<<"EOF" are ok, but after cat<<EOF at line 27, which allows for variables expansion, everything remains green and doesn’t go back to the normal theme colors.


cat<<'EOF' > test
test
EOF

echo "ok"

tee test <<'EOF'
test
EOF

echo "ok"

cat<<"EOF" > test
test
EOF

echo "ok"

tee test <<"EOF"
test
EOF

echo "ok"

cat<<EOF > test
test
EOF

echo "ok"

tee test <<EOF
test
EOF

echo "ok"

Thanks

1 Like

Syntax highlighting is handled by external libraries (separate for editor and reading). We’ll just wait until this is fixed upstream.