-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add support for dash shebang #1654
Add support for dash shebang #1654
Conversation
Thanks for your contribution.
You can update the changelog as part of this pull request :) I would say that having extra test files is not a bad thing ™️ even if it seems redundant. After all, the dash shell supports less features than bash, and at some point somebody might make a separate syntax definition for it, so it could be useful for regression testing purposes to have a genuine dash script test file. I think it's also worth making a PR to https://github.com/sublimehq/Packages/blob/master/ShellScript/Bash.sublime-syntax, so that when our syntax highlighting library, syntect, supports the latest features and we can reference the latest upstream version of the syntax, that we wouldn't lose any functionality in bat ;)
sounds great, nice to have your help! :) |
I honestly had no idea that adding more commits would automatically reflect on this pull request. Got there in the end! :) I updated the As a final note, the spelling I used for the test directory and in the
|
Apologies, I noticed you said it was your first time contributing to open source, but I didn't pick up on it being your first time with the Pull Request workflow, otherwise I would have given clearer instructions. Glad you figured it out!
Great solution :) Thanks for your hard work on this. |
It looks like we have some merge conflicts now, which should give you some more experience resolving them :) |
No need, you saying that I could do it as part of this PR pointed me in the right direction!
My apologies, I completely missed this. For some reason I thought this process only applied for new syntax files. I have now updated the branch to use Thank you for your help and patience! |
I'm also not sure if we need to revert it or not, hopefully one of the other maintainers will get back to us. But if it does need to be reverted, we'll sort it out, don't worry - thanks for pointing it out. :) I wonder if it makes sense to have some automated bot warn us about it to help prevent the same thing happening again in future with other PRs :) |
No need to revert. I added that policy because frequent changes to binary files increase the size of the Git repository (presumably). That's why I usually only update them before releases. But there is no real harm in updating them in between. |
Hello, everyone, first-timer here!
This is a patch to
Bash.sublime-syntax
that adds support for shebangs explicitly calling fordash
, e.g.,#!/usr/bin/env dash
.This is my first time contributing to any project, so I have a couple of questions that may be obvious:
CONTRIBUTING.md
it is mentioned that one should update theCHANGELOG
. This is done after a pull request is merged, right? Is it a second, separate pull request?I have also prepared a second patch that adds support for XAML files (#1590), but I will wait for feedback on this before submitting another pull request in case I am doing something wrong.
Thank you for your incredible work! I look forward to trying to help out in the future, hopefully with a little bit of Rust!