π Missing Languages
lukepistrol opened this issue Β· comments
There are several language grammars
available for tree-sitter
. Checked items have SPM already implemented.
Supported languages
See the following section in the README:
Important to know is that some language grammars depend on another grammar to function properly (e.g.: C++ depends on the C grammar). Therefore the
highlights.scm
files need to be concatenated when run.This can also happen when there are different flavors available (e.g: JavaScript & JSX). In this case there is an additional
highlights-jsx.scm
file located in the JavaScript's grammarqueries
folder.
Add new Languages
In order to make it a little easier to add SPM support to grammars, I wrote an article in the documentation: Add languages
@lukepistrol, Are we planning to add kotlin? I'm willing to contribute to it
@ahmed3elshaer We should be including kotlin. We would love the contribution! Feel free to reach out to @lukepistrol in the #editor channel in our Discord server to coordinate.
@ahmed3elshaer the Kotlin grammar is still in development and does not have a highlights.scm
file yet for syntax highlighting. Feel free to contribute on their repo.
@austincondiff thanks for the clarification π
@ahmed3elshaer the Kotlin grammar is still in development and does not have a
highlights.scm
file yet for syntax highlighting. Feel free to contribute on their repo.
I already started planning this, thanks for the referral ππ»
Is TypeScript and TSX coming soon?
@hamzaplojovic if it is not yet on the list, it definitely should be. Here is the tree-sitter repo for it...
https://github.com/tree-sitter/tree-sitter-typescript.
Edit: It looks like it is on the list but not yet implemented. Feel free to take a stab at it, otherwise it will be coming soon.
I will try, but I just wanted to remind you of one of the most popular ones π
Just a tip that Elixir is probably good to get on this list: https://github.com/elixir-lang/tree-sitter-elixir
Typescript
and TSX
are complicated. I have tried it already but I think it depends on javascript
and for some reason adding it as a parentLanguage
in CodeLanguage
breaks the highlighting for TS & TSX.
The link to my spm branch on tree-sitter-typescript: https://github.com/lukepistrol/tree-sitter-typescript/tree/feature/spm
It would be amazing to see Terraform/HCL here too π
is it possible to fix the doc link?
This package is fully documented here.
and that link:
I wrote an article in the documentation: Add languages
Thanks
@MikePendo this might very much be related to this:
We're not the only ones having this issue as there is already a ticket on the official swift-docc-plugin
repo:
@MikePendo the links should now be working again! Fixed the issues for now!
Be great to support:
- Svelte
- SCSS
- SVG
All the web work i do is svelte and until the above is available i cant really get stuck in to code edit for real work, happy to test and provide detailed feedback for any of these!
Twig is popular too.