coder3101 / protols Goto Github PK
View Code? Open in Web Editor NEWLanguage Server for protocol buffers
License: MIT License
Language Server for protocol buffers
License: MIT License
Follow instructions at: https://doc.rust-lang.org/cargo/reference/publishing.html
Reserved fields show as syntax error:
syntax = "proto3";
package test;
message Foo {
reserved 1;
reserved "baz"; // shows as syntax error
int bar = 2;
}
despite reported tree-sitter AST not contains any error nodes.
(source_file ; [0, 0] - [9, 0]
(syntax) ; [0, 0] - [0, 18]
(package ; [2, 0] - [2, 13]
(full_ident ; [2, 8] - [2, 12]
(identifier))) ; [2, 8] - [2, 12]
(message ; [4, 0] - [8, 1]
(message_name ; [4, 8] - [4, 11]
(identifier)) ; [4, 8] - [4, 11]
(message_body ; [4, 12] - [8, 1]
(reserved ; [5, 1] - [5, 12]
(ranges ; [5, 10] - [5, 11]
(range ; [5, 10] - [5, 11]
(int_lit ; [5, 10] - [5, 11]
(decimal_lit))))) ; [5, 10] - [5, 11]
(reserved ; [6, 1] - [6, 16]
(field_names ; [6, 10] - [6, 15]
(string))) ; [6, 10] - [6, 15]
(field ; [7, 1] - [7, 13]
(type ; [7, 1] - [7, 4]
(message_or_enum_type ; [7, 1] - [7, 4]
(identifier))) ; [7, 1] - [7, 4]
(identifier) ; [7, 5] - [7, 8]
(field_number ; [7, 11] - [7, 12]
(int_lit ; [7, 11] - [7, 12]
(decimal_lit))))))) ; [7, 11] - [7, 12]
It would be best to have some unit tests in the parser to add confidence on our parser related changes.
Currently the comments are just placed in a new line and does not honour the comment style. Ideally we should follow the same format as specified in the comment.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.