-
-
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 SaltStack SLS syntax #658
Conversation
Thank you for your contribution. I've never heard of SaltStack before. It sounds like this syntax would be something very specific. Have you considered adding this syntax to your local installation? |
Hi @sharkdp, I already have it my local installation and it works just fine and that's why I felt it would be great if bat would include it by default. You can see in the following examples how it fixes highlighting: |
@eth-p Your opinion? Maybe we should add some policy to make objective decisions on similar PRs that add new syntaxes. SublimeText package is here: |
@sharkdp We should definitely make some kind of objective policy for adding new syntaxes. The hard part is going to be figuring out how to gather metrics on the proposed language, though. While SublimeText is a decent way of figuring out how many people use both Sublime and the language, I feel like it could be missing out on a potentially significant portion of users who don't actually use Sublime. Some other metrics we could use:
Additionally, what do you think would be a good "minimum" number of downloads for a language to be considered popular enough that it should be added? |
That's certainly a good idea!
So far, my threshold was somewhere between 10k and 20k total downloads. But I guess I wasn't strictly following that. |
Another possibility might be to use the list of languages that github itself will syntax highlight: https://github.com/github/linguist/blob/master/vendor/README.md |
Hi, regarding the questions on the need for this language, there are some results:
|
@Martin819 Thank you for the detailed update! Let's merge this for now. If we have a problem with too many syntax being bundled with |
(nightly builds are currently broken, but this has nothing to do with this PR) |
This has been released in bat 0.13. |
Adding new syntax highlighting for SaltStack states - SLS files.
Example: