Skip to content

Commit

Permalink
chore(deps): Update treesitter (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
timonv authored Sep 12, 2024
1 parent 408f30a commit 37c4bd9
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 31 deletions.
54 changes: 34 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions swiftide-integrations/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ redis = { version = "0.27", features = [
"connection-manager",
"tokio-rustls-comp",
], optional = true }
tree-sitter = { version = "0.22", optional = true }
tree-sitter-rust = { version = "0.21", optional = true }
tree-sitter-python = { version = "0.21", optional = true }
tree-sitter-ruby = { version = "0.21", optional = true }
tree-sitter-typescript = { version = "0.21", optional = true }
tree-sitter-javascript = { version = "0.21", optional = true }
tree-sitter = { version = "0.23", optional = true }
tree-sitter-rust = { version = "0.23", optional = true }
tree-sitter-python = { version = "0.23", optional = true }
tree-sitter-ruby = { version = "0.23", optional = true }
tree-sitter-typescript = { version = "0.23", optional = true }
tree-sitter-javascript = { version = "0.23", optional = true }
fastembed = { version = "4.0", optional = true }
spider = { workspace = true, optional = true }
htmd = { version = "0.1", optional = true }
Expand Down
11 changes: 6 additions & 5 deletions swiftide-integrations/src/treesitter/supported_languages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,13 @@ impl From<SupportedLanguages> for tree_sitter::Language {
/// A `tree_sitter::Language` object corresponding to the provided `SupportedLanguages` enum value.
fn from(val: SupportedLanguages) -> Self {
match val {
SupportedLanguages::Rust => tree_sitter_rust::language(),
SupportedLanguages::Python => tree_sitter_python::language(),
SupportedLanguages::Typescript => tree_sitter_typescript::language_typescript(),
SupportedLanguages::Javascript => tree_sitter_javascript::language(),
SupportedLanguages::Ruby => tree_sitter_ruby::language(),
SupportedLanguages::Rust => tree_sitter_rust::LANGUAGE,
SupportedLanguages::Python => tree_sitter_python::LANGUAGE,
SupportedLanguages::Typescript => tree_sitter_typescript::LANGUAGE_TYPESCRIPT,
SupportedLanguages::Javascript => tree_sitter_javascript::LANGUAGE,
SupportedLanguages::Ruby => tree_sitter_ruby::LANGUAGE,
}
.into()
}
}

Expand Down

0 comments on commit 37c4bd9

Please sign in to comment.