-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bash] commands after HEREDOC delimiter are highlighted like the HEREDOC #35
Comments
Not seeing this issue in TextMate, the regex here looked reasonably straightforward so nothing jumps out as being the issue. My first suspicion is a different in regex engine syntax but I know basically nothing about how vsCode is implemented language-wise. |
I believe that there are two issues here:
|
There is also the possibility of matching the (start) heredoc token and then capture the rest of the line, and for the captures part of the rule, include |
annual bump! |
I was wondering if there is any update on this. I can see this issue on Ubuntu 18.04.1 with VS Code v. 1.27.2 |
2019 bump!!! This is extremely annoying. On Mojave. |
Same problem. 2020 bump, just started to get on the vscode bus, but I use heredoc's allot.. |
Update to myself. The quotes didn't work, they actually broke variable expansion. Randomly though I discovered that you need a space after EOT. Bash doesn't care, but VSCode does. To be fair, many pages do show the spaces: https://linuxize.com/post/bash-heredoc/ ,so even though they aren't needed by bash, I'm not sure this is a bug. This may be well known by others, but I'm guessing this bug wouldn't be here if everyone knew. cat < makes VS Code sad cat < gets highlighted properly and works! |
Still broken in vscode 1.49.2 for ksh space-trimming heredoc syntax '<<#word'.
|
From @dexwerx on January 5, 2017 20:59
Steps to Reproduce:
everything after the end of heredoc token EOD is highlighted the same as the rest of the heredoc.
Copied from original issue: microsoft/vscode#18192
The text was updated successfully, but these errors were encountered: