Skip to content
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

Closed
ssynix opened this issue Sep 19, 2017 · 7 comments
Closed

Bash syntax highlighting bug when using comments in backticks #34643

ssynix opened this issue Sep 19, 2017 · 7 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug languages-basic Basic language support issues verified Verification succeeded
Milestone

Comments

@ssynix
Copy link

ssynix commented Sep 19, 2017

  • VSCode Version: 1.16.1
  • OS Version: MacOS Sierra

Steps to Reproduce:

I use the following style to insert inline documentation for long bash commands and their cryptic args.

foo                             \
  -d `# we use d for something` \
  -c `# we use c for something` \
  ...

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.

@aeschli
Copy link
Contributor

aeschli commented Sep 21, 2017

This issue was moved to textmate/shellscript.tmbundle#44

@aeschli aeschli closed this as completed Sep 21, 2017
@dsifford
Copy link

dsifford commented Oct 6, 2017

@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. 😄

@aeschli
Copy link
Contributor

aeschli commented Oct 6, 2017

@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.

@dsifford
Copy link

dsifford commented Oct 6, 2017

@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 Make, Ruby, Perl, and Powershell (the latter being only because the ergonomics is difficult being that I'd need to compile a development version of VSCode and deal with XML to contribute fixes).

Just a suggestion. Thanks for considering.

@aeschli
Copy link
Contributor

aeschli commented Nov 9, 2017

@dsifford I switch the shell grammar to use https://github.com/atom/language-shellscript.

This issue seems to be fixed by that.

@aeschli aeschli reopened this Nov 9, 2017
@aeschli aeschli added this to the November 2017 milestone Nov 9, 2017
@aeschli aeschli added the bug Issue identified by VS Code Team member as probable bug label Nov 9, 2017
@dsifford
Copy link

dsifford commented Nov 9, 2017

@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 😊

@aeschli
Copy link
Contributor

aeschli commented Nov 10, 2017

@dsifford I update all grammars at least once a release, but on demand also more often. Just ping me or file an issue.

@aeschli aeschli closed this as completed Nov 10, 2017
@roblourens roblourens added the verified Verification succeeded label Dec 6, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug languages-basic Basic language support issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants