Skip to content

Commit 0cbbbe2

Browse files
author
Marlon Costa
committed
build(deps): Update tree-sitter from 0.25.4 to 0.26.3
- Update tree-sitter from 0.25.4 to 0.26.3 - Switch tree-sitter-kotlin-ng to tree-sitter-kotlin-codanna 0.3.9 - Update tree-sitter-javascript to 0.25.0 - Update tree-sitter-python to 0.25.0 - Update tree-sitter-rust to 0.24.0 - Regenerate language enums for all grammars - Fix Node::child() to use u32 cast for tree-sitter 0.26 API - Add macro case for tree_sitter_kotlin_codanna::language()
1 parent 9e25ead commit 0cbbbe2

File tree

17 files changed

+1025
-868
lines changed

17 files changed

+1025
-868
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
src
2+
root
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
1768922402:/home/marlonsc/mozilla-rust-code-analisis/src/metrics/abc.rs:src
2+
1768924638:/home/marlonsc/mozilla-rust-code-analisis/Cargo.toml:root
3+
1768925046:/home/marlonsc/mozilla-rust-code-analisis/src/node.rs:src
4+
1768925048:/home/marlonsc/mozilla-rust-code-analisis/src/langs.rs:src
5+
1768925051:/home/marlonsc/mozilla-rust-code-analisis/src/tools.rs:src
6+
1768925211:/home/marlonsc/mozilla-rust-code-analisis/src/macros.rs:src

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ serde = { version = "^1.0", features = ["derive"] }
2424
termcolor = "^1.2"
2525
walkdir = "^2.3"
2626

27-
tree-sitter = "=0.25.4"
27+
tree-sitter = "=0.26.3"
2828
tree-sitter-java = "=0.23.5"
29-
tree-sitter-kotlin-ng = "1.1.0"
29+
tree-sitter-kotlin-codanna = "0.3.9"
3030
tree-sitter-typescript = "=0.23.2"
31-
tree-sitter-javascript = "=0.23.1"
32-
tree-sitter-python = "=0.23.6"
31+
tree-sitter-javascript = "=0.25.0"
32+
tree-sitter-python = "=0.25.0"
3333
tree-sitter-rust = "=0.24.0"
3434
tree-sitter-preproc = { path = "./tree-sitter-preproc", version = "=0.20.4" }
3535
tree-sitter-ccomment = { path = "./tree-sitter-ccomment", version = "=0.20.4" }

enums/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ edition = "2024"
88
clap = { version = "^4.0", features = ["derive"] }
99
askama = "^0.14"
1010

11-
tree-sitter = "=0.25.4"
11+
tree-sitter = "=0.26.3"
1212
tree-sitter-java = "=0.23.5"
13-
tree-sitter-kotlin-ng = "1.1.0"
13+
tree-sitter-kotlin-codanna = "0.3.9"
1414
tree-sitter-typescript = "=0.23.2"
15-
tree-sitter-javascript = "=0.23.1"
16-
tree-sitter-python = "=0.23.6"
15+
tree-sitter-javascript = "=0.25.0"
16+
tree-sitter-python = "=0.25.0"
1717
tree-sitter-rust = "=0.24.0"
1818
tree-sitter-preproc = { path = "../tree-sitter-preproc", version = "=0.20.4" }
1919
tree-sitter-ccomment = { path = "../tree-sitter-ccomment", version = "=0.20.4" }

enums/src/languages.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use tree_sitter::Language;
33
mk_langs!(
44
// 1) Name for enum
55
// 2) tree-sitter function to call to get a Language
6-
(Kotlin, tree_sitter_kotlin_ng),
6+
(Kotlin, tree_sitter_kotlin_codanna),
77
(Java, tree_sitter_java),
88
(Rust, tree_sitter_rust),
99
(Cpp, tree_sitter_cpp),

enums/src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ macro_rules! mk_get_language {
1919
( $( ($camel:ident, $name:ident) ),* ) => {
2020
pub fn get_language(lang: &Lang) -> Language {
2121
match lang {
22-
Lang::Kotlin => tree_sitter_kotlin_ng::LANGUAGE.into(),
22+
Lang::Kotlin => tree_sitter_kotlin_codanna::language().into(),
2323
Lang::Java => tree_sitter_java::LANGUAGE.into(),
2424
Lang::Typescript => tree_sitter_typescript::LANGUAGE_TYPESCRIPT.into(),
2525
Lang::Tsx => tree_sitter_typescript::LANGUAGE_TSX.into(),

src/langs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ mk_langs!(
5353
"kotlin",
5454
KotlinCode,
5555
KotlinParser,
56-
tree_sitter_kotlin_ng,
56+
tree_sitter_kotlin_codanna,
5757
[kt, kts],
5858
["kotlin"]
5959
),

0 commit comments

Comments
 (0)