Giter VIP home page Giter VIP logo

protols's People

Contributors

asharkhan3101 avatar coder3101 avatar emarcotte-dh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

emarcotte-dh

protols's Issues

reserved "field_name" incorrectly reports as error

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]

Properly format the Hover text

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.

  • Do not ignore newlines
  • Do not ignore empty comment lines

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.