Skip to content

Commit 06458cf

Browse files
committed
feat: add support for basic proto2
1 parent c1c30a0 commit 06458cf

File tree

3 files changed

+51
-27
lines changed

3 files changed

+51
-27
lines changed

Cargo.lock

Lines changed: 47 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "protols"
33
description = "Language server for proto3 files"
4-
version = "0.6.2"
4+
version = "0.7.0"
55
edition = "2021"
66
license = "MIT"
77
homepage = "https://github.com/coder3101/protols"
@@ -19,9 +19,9 @@ tokio-util = { version = "0.7.11", features = ["compat"] }
1919
tower = "0.4.13"
2020
tracing = "0.1.40"
2121
tracing-subscriber = "0.3.18"
22-
tree-sitter = "0.22.6"
22+
tree-sitter = "0.24.3"
2323
tracing-appender = "0.2.3"
24-
protols-tree-sitter-proto = "0.2.0"
24+
tree-sitter-proto = "0.1.0"
2525
walkdir = "2.5.0"
2626
hard-xml = "1.36.0"
2727
tempfile = "3.12.0"

src/parser/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub struct ParsedTree {
2323
impl ProtoParser {
2424
pub fn new() -> Self {
2525
let mut parser = tree_sitter::Parser::new();
26-
if let Err(e) = parser.set_language(&protols_tree_sitter_proto::language()) {
26+
if let Err(e) = parser.set_language(&tree_sitter_proto::LANGUAGE.into()) {
2727
panic!("failed to set ts language parser {:?}", e);
2828
}
2929
Self { parser }

0 commit comments

Comments
 (0)