Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review Text Format Spec #12

Open
thejustinwalsh opened this issue Nov 5, 2024 · 2 comments
Open

Review Text Format Spec #12

thejustinwalsh opened this issue Nov 5, 2024 · 2 comments

Comments

@thejustinwalsh
Copy link
Owner

The original implementation of the grammar in this repo predates any known specification and in 2022 a Protocol Buffer Text Format Spec was published.

Review the specification and the grammar to ensure proper handling of all syntax highlighting cases.

@thejustinwalsh
Copy link
Owner Author

Additionally while searching for example textproto files, I ran accross this repo, that contains an example grammer https://github.com/PorterAtGoogle/tree-sitter-textproto

@thejustinwalsh
Copy link
Owner Author

Note: Comments can appear between syntax tokens:

value: -
  # comment
  2.0         # Valid: whitespace and comments between '-' and '2.0'.

https://protobuf.dev/reference/protobuf/textformat-spec/#parsing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant