-
Notifications
You must be signed in to change notification settings - Fork 130
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 syntax highlighting for Vala #113
Conversation
Hmmm, I think I agree with this in principle, I'm just wondering if I want to go even further. Lots of people want highlighting for languages like Typescript that aren't part of the default package set. Projects like https://github.com/Keats/gutenberg maintain their own set of dumps for this. I'm not sure if I want to:
I'm pretty busy for the next week so I'm not sure I'll get around to doing anything about this personally soon. Let me know if you really would like fast action on this, but I don't want to add Vala to the default dump and then make a non-compatible move of it from the default dump to an extended one. cc @Keats |
No need to hurry. While working on this I noticed that quite a few other languages are missing as well, e.g. Swift. I believe there are use cases (such as a static site generator) where you really want to support as many languages as possible but also for a text editor like Xi I would actually prefer the syntaxes not to be compiled into the binary but instead be loaded from disk only when they are needed. I am also not sure how useful a default dump that only includes a few languages actually is. Here is a nice list of the syntaxes that is used to highlight code on GitHub BTW. |
I think the basic default dump (for theme and syntaxes) is fine as an example and to get things working after adding it to |
I'm not sure about adding additional syntaxes to syntect itself. Ideally, they would live in https://github.com/sublimehq/Packages/ directly, but I get the impression that @wbond seems to be opposed to that? @wbond, maybe you would be open to the idea of putting it in a separate directory tree, something like And if we can't do that, we should probably have a separate repository because this might be useful for other things than syntect itself and might be nice as a kind of "staging" area for Packages itself. |
@robinst Effectively https://packagecontrol.io/ is where extra |
Hello! I like the original @eyelash 's suggestion about leveraging https://github.com/github/linguist/tree/master/vendor/grammars : this list is much broader than the https://github.com/sublimehq/Packages/ . It was created for exactly the same purpose and is already moderated by GitHub folks. It also resolves the situations when there is more than 1 tmLanguage in the ST package control. |
If someone's willing to do the work to automatically convert all those tmBundles to sublime-syntaxes and add a cargo feature to bundle the extra syntaxes, I'm probably willing to accept that. Might need to set up Git LFS for the packdumps for that so they don't bloat the Git repo too much, but that's fine. I'm totally okay with some curation though, especially since we can use sublime-synaxes I bet there are some higher quality syntaxes for certain languages than the ones Github uses. |
Has there been any progress in this front? I've been using I would be willing to add the missing regex, but I don't know how to add anything to the packdump... |
The current consensus is that no additional language will be added to the set of languages supported natively by the syntect librarly. Clients have to make the necessary arrangesments themselves. So I'm closing this PR now. That said, there is interest among several projects to share a common set of syntax definitions, see #168 |
As I needed to convert the .tmLanguage to .sublime-syntax I added the file directly instead of using a submodule.
closes #67