Skip to content

Commit 76cd2a9

Browse files
feat: add support for basic proto2 (#38)
1 parent c1c30a0 commit 76cd2a9

File tree

4 files changed

+54
-30
lines changed

4 files changed

+54
-30
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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
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"
88
repository = "https://github.com/coder3101/protols"
99
readme = "README.md"
10-
keywords = ["lsp", "proto3"]
10+
keywords = ["lsp", "proto"]
1111

1212
exclude = ["assets/*", "sample/*"]
1313

@@ -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"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Crates.io](https://img.shields.io/crates/v/protols.svg)](https://crates.io/crates/protols)
44
[![Build and Test](https://github.com/coder3101/protols/actions/workflows/ci.yml/badge.svg)](https://github.com/coder3101/protols/actions/workflows/ci.yml)
55

6-
**Protols** is an open-source Language Server Protocol (LSP) for **proto3** files, powered by the robust and efficient [tree-sitter](https://tree-sitter.github.io/tree-sitter/) parser. With Protols, you get powerful code assistance for protobuf files, including auto-completion, syntax diagnostics, and more.
6+
**Protols** is an open-source Language Server Protocol (LSP) for **proto** files, powered by the robust and efficient [tree-sitter](https://tree-sitter.github.io/tree-sitter/) parser. With Protols, you get powerful code assistance for protobuf files, including auto-completion, syntax diagnostics, and more.
77

88
![](./assets/protols.mov)
99

@@ -73,4 +73,4 @@ Allows renaming of symbols like messages and enums, along with all their usages
7373

7474
---
7575

76-
Protols is designed to supercharge your workflow with **proto3** files. We welcome contributions and feedback from the community! Feel free to check out the [repository](https://github.com/coder3101/protols) and join in on improving this tool! 🎉
76+
Protols is designed to supercharge your workflow with **proto** files. We welcome contributions and feedback from the community! Feel free to check out the [repository](https://github.com/coder3101/protols) and join in on improving this tool! 🎉

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)