Replies: 2 comments 2 replies
|
Thanks for the recommendation, I also had a chat with another user who wanted this. I will push it soon. |
|
Kotlin support is now available, will be in v0.3.9. Thanks for the request @esafak! How to add a new language to semAdding a language takes about 10 minutes. Everything lives in two files. 1. Add the tree-sitter grammar dependencyIn tree-sitter-kotlin-ng = "1.1"Use crates.io to find the right crate. Make sure it is compatible with 2. Add the language configIn a. Add a fn get_kotlin() -> Option<Language> {
Some(tree_sitter_kotlin_ng::LANGUAGE.into())
}b. Add a
To find the right node types, parse a sample file and inspect the AST, or check the grammar c. Add it to 3. Add a testIn 4. Verifycd crates && cargo testThat is it. Open a PR with these changes and we will review it. |
Uh oh!
There was an error while loading. Please reload this page.
I'd like to use it with Kotlin, for example. If you are open to contributions and don't want to handle everything yourself, could you create a guide to adding a new language so we can maintain consistency with your repo's patterns?
All reactions