feat: Add Kotlin support #56
No reviewers
Labels
No labels
Compat/Breaking
Kind
Bad merge
Kind
Bug
Kind
Documentation
Kind
Enhancement
Kind
Feature
Kind
New language
Kind
Security
Kind
Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: mergiraf/mergiraf#56
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "wetneb/mergiraf:kotlin"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds support for Kotlin. The parser groups imports together by detecting the empty lines between them, but to do so it includes whitespace at the end of
import_list
nodes, which isn't something I had planned for in the pretty printer, so I had to make some adjustments accordingly.c3957ac351
todcf1ca3b8b
dcf1ca3b8b
to0f2e86ec65
@ -21,6 +21,7 @@ tree-sitter-rust = "0.23"
tree-sitter-json = "0.23"
tree-sitter-yaml = "0.6.1"
tree-sitter-java = "0.23"
tree-sitter-kotlin = { git = "https://github.com/alexle0nte/tree-sitter-kotlin.git", rev = "9b40bc22b49e616ea1a2fe6bca98fa211565aa7d" }
This is because the latest published version of this crate only works with older versions of tree-sitter.
I would like to wait for https://github.com/fwcd/tree-sitter-kotlin/pull/150 to get merged and released before merging this, so that we only rely on official versions.
0f2e86ec65
to775df8997f
f6100874fc
tob41e51c9ee
b41e51c9ee
to0c1c2dbcbc
0c1c2dbcbc
to7995e92298
7995e92298
to745cb0e26b
I have switched the crate to tree-sitter-kotlin-ng, which is maintained here:
https://github.com/tree-sitter-grammars/tree-sitter-kotlin.
I've been told that grammar is still a work in progress but as far as I can tell it is better than the original, in some respects, so I'd be keen to start using it already.
WIP: feat: Add Kotlin supportto feat: Add Kotlin supportLGTM! (given that I don't know anything Kotlin)
@ -0,0 +1,6 @@
object MergeAlgorithm {
very meta:)