-
-
Notifications
You must be signed in to change notification settings - Fork 122
feat: 570 kotlin support #573
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
Merged
morgante
merged 27 commits into
biomejs:main
from
Alex-ley-scrub:feat/570-kotlin-support
Jan 25, 2025
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
2862d27
feat(kotlin): add 'tree-sitter-kotlin' submodule
Alex-ley-scrub f57def5
feat(kotlin): update "vendor/tree-sitter-gritql" submodule commit and…
Alex-ley-scrub b7e617d
feat: copy kotlin grammar.js into 'metavariable-grammars/kotlin-metav…
Alex-ley-scrub 219d8be
fix(kotlin-metavariable-grammar.js): add `grit_metavariable` in a bun…
Alex-ley-scrub 56fd085
fix: copy "resources/language-submodules/tree-sitter-kotlin/" -> "res…
Alex-ley-scrub 05448c3
fix(edit_grammars.mjs): add kotlin and fix `treeSitterGenerate()`
Alex-ley-scrub 5d1dd0e
fix(kotlin-metavariable-grammar.js): add missing grit_metavariable co…
Alex-ley-scrub 22a5a8f
fix(language-metavariables/tree-sitter-kotlin): update with 'resource…
Alex-ley-scrub 23ea64e
fix: add script to automate adding a new language to the gritql metav…
Alex-ley-scrub 28f3233
feat(kotlin): add kotlin.rs with `impl Language for Kotlin` and add `…
Alex-ley-scrub 48b276b
fix(patterns_directory.rs): add kotlin to the `PatternsDirectory` str…
Alex-ley-scrub eeab266
fix(kotlin): add kotlin to missing enums and match statements in crat…
Alex-ley-scrub fb103e2
test(apply): add a couple of js array / py list append query/operatio…
Alex-ley-scrub 90f250d
test(apply): add some basic string equivalence tests for kotlin and p…
Alex-ley-scrub d4e8689
test(core): add a bunch of kotlin metavariable tests that fail becaus…
Alex-ley-scrub f04d8f0
test(language/src): add more snippet tests for kotlin, java, javascri…
Alex-ley-scrub 4247cbd
fix(node_with_source): add `print_node_tree()` method on `NodeWithSou…
Alex-ley-scrub 62e5ec8
fix(kotlin-metavariable-grammar): try to implement it more like the p…
Alex-ley-scrub 3b99c9c
fix(tree-sitter-kotlin/grammar.js): remove unecessary comments
Alex-ley-scrub b60b0ef
fix: clippy warnings
Alex-ley-scrub 77684c2
fix(kotlin-metavariable-grammar): improve `function_declaration` matc…
Alex-ley-scrub 3005a0c
fix(kotlin-metavariable-grammar): improve `property_declaration` and …
Alex-ley-scrub 5da1d43
fix(core/src/test): typos/errors in patterns
Alex-ley-scrub 3e785c9
fix(kotlin-metavariable-grammar): improve `import_header` matching
Alex-ley-scrub 72f7379
fix(kotlin-metavariable-grammar): improve `value_arguments` and `call…
Alex-ley-scrub 16ce34d
fix: remove resources/add_language.py as per PR comment
Alex-ley-scrub 00e24eb
Merge branch 'main' into feat/570-kotlin-support
morgante File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| // https://github.com/actions/runner-images/blob/main/README.md#available-images | ||
| val validImages = listOf( | ||
| "ubuntu-20.04", | ||
| "ubuntu-latest", | ||
| """ubuntu-latest""", | ||
| "ubuntu-24.04", | ||
| ) | ||
|
|
||
| fun hi(name: String) = "hi " + name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # https://github.com/actions/runner-images/blob/main/README.md#available-images | ||
| steps = [ | ||
| "ubuntu-latest", | ||
| 'ubuntu-latest', | ||
| r"ubuntu-latest", | ||
| """ubuntu-latest""", | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
crates/cli_bin/tests/snapshots/apply__apply_to_kotlin_with_multiple_equivalent_strings.snap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| --- | ||
| source: crates/cli_bin/tests/apply.rs | ||
| expression: content | ||
| --- | ||
| // https://github.com/actions/runner-images/blob/main/README.md#available-images | ||
| val validImages = listOf( | ||
| "ubuntu-20.04", | ||
| "ubuntu-22.04", | ||
| "ubuntu-22.04", | ||
| "ubuntu-24.04", | ||
| ) | ||
|
|
||
| fun hi(name: String) = "hi " + name |
11 changes: 11 additions & 0 deletions
11
crates/cli_bin/tests/snapshots/apply__apply_to_python_with_multiple_equivalent_strings.snap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
| source: crates/cli_bin/tests/apply.rs | ||
| expression: content | ||
| --- | ||
| # https://github.com/actions/runner-images/blob/main/README.md#available-images | ||
| steps = [ | ||
| "ubuntu-22.04", | ||
| "ubuntu-22.04", | ||
| "ubuntu-22.04", | ||
| "ubuntu-22.04", | ||
| ] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.