Skip to content

Add tree-sitter-kotlin language support from unofficial parser#137

Open
DavidBakerEffendi wants to merge 2 commits intobonede:mainfrom
DavidBakerEffendi:dave/add-kotlin
Open

Add tree-sitter-kotlin language support from unofficial parser#137
DavidBakerEffendi wants to merge 2 commits intobonede:mainfrom
DavidBakerEffendi:dave/add-kotlin

Conversation

@DavidBakerEffendi
Copy link
Contributor

This pull request introduces support for the Kotlin language by adding the tree-sitter-kotlin module.

Key changes include:

  • Module Integration: Added tree-sitter-kotlin to the project's settings.gradle.
  • Language Binding: Implemented the TreeSitterKotlin Java class extending TSLanguage and provided the necessary JNI C bindings.
  • Build Configuration: Configured the build to download the Kotlin grammar source (version 0.3.8) from the official fwcd/tree-sitter-kotlin repository.
  • Native Binaries: Included pre-compiled native libraries for multiple platforms (Linux, macOS, and Windows) covering x86_64 and aarch64 architectures.
  • Testing: Added a basic corpus test to verify the grammar integration using existing test utilities.

If there is a reason we don't support unofficial parsers, feel free to close this project, but I may need to fork this project in that case as Kotlin is a pretty widely adopted language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant