You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bash script highlighting completely breaks for the rest of the file if you use a here string in combination with line continuation:
#!/usr/bin/env bash# this works (here string)
ssh \
"foo@bar" \
"/usr/bin/bash" -sl <<<'echo "test"'# this doesn't (here string + line continuation)
ssh \
"foo@bar" \
"/usr/bin/bash" -sl <<<\ 'echo "test"'echo 'now highlighting is completely broken and does not recover for the rest of the file'
Expected behaviour
Here string syntax is recognized and highlighted correctly even when followed by a line continuation.
Unfortunately, the only options are to find a new grammar that doesn't experience this issue or fork the current grammar and fix it yourself and then open a PR to change grammars.
Describe the bug
Bash script highlighting completely breaks for the rest of the file if you use a here string in combination with line continuation:
Expected behaviour
Here string syntax is recognized and highlighted correctly even when followed by a line continuation.
Additional notes
I read the comment in https://github.com/github-linguist/linguist/blob/master/vendor/README.md, but it's impossible to report this bug in the grammar upstream, since that repository is now archived and unmaintained: https://github.com/atom/language-shellscript
The text was updated successfully, but these errors were encountered: