-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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 syntax highlighting bug when using comments in backticks #34643
Comments
This issue was moved to textmate/shellscript.tmbundle#44 |
@aeschli Related question: Is there a reason for not using Atom's tmLangugage implementation in shellscript like VSCode is for a majority of the other languages? The Atom repo looks like it's much more active than the textmate one. (Also, on a personal note: It's a much more pleasant experience to contribute fixes to Atom languages because they use CSON, rather than XML). Thanks in advance for the clarification. 😄 |
@ssynix We can switch to Atom if people like that grammar better. There are only few open bugs on textmate/shellscript.tmbundle#44, so from our side, there's no urgency. |
@aeschli If we were to move over to the Atom syntax, I'd personally fix whatever issues are outstanding in shellscript including these few that I ran into. I spent the last few days going through some of the bugs I've found and submitting PRs to Atom for their grammars and I've already established rapport with them so the process is just a bit easier for me. Similarly to this, I've been blocked from being able to help fix Just a suggestion. Thanks for considering. |
@dsifford I switch the shell grammar to use https://github.com/atom/language-shellscript. This issue seems to be fixed by that. |
@ssynix Awesome, I appreciate the switch! Question for you now that I've got your attention: What is the current process (and frequency) that VSCode pulls grammars from atom? I've noticed on a number of occasions recently that there will be issues in VSCode, but not in atom (presumptively because VSCode's grammars are behind Atom's) I assume (for the stable channel) the languages are synced the day of release. But what about for insiders? Is this a daily compile task? Thanks for the clarification 😊 |
@dsifford I update all grammars at least once a release, but on demand also more often. Just ping me or file an issue. |
Steps to Reproduce:
I use the following style to insert inline documentation for long bash commands and their cryptic args.
The same snippet on vscode breaks syntax highlighting in other parts of the code, because it doesn't correctly detect the comment statement inside backticks. Use keywords (
for
,in
), or quotes inside the comment statements to see the bug.The text was updated successfully, but these errors were encountered: