thejustinwalsh / textproto-grammar

Syntax Highlighting for the Protocol Buffer Text Format
https://marketplace.visualstudio.com/items?itemName=thejustinwalsh.textproto-grammer
MIT License
14 stars 2 forks source link

comments at the end of lines are highlighted incorrectly #10

Open FranklinYu opened 1 year ago

FranklinYu commented 1 year ago

Example:

# this is a comment
x: 1  # this also is a comment

This is frequently used in the official specification.

thejustinwalsh commented 1 year ago

Still have not found the time to investigate, accepting PRs 😂

jumarini commented 1 month ago

I'm starting to work with .textpb files, and proper syntax highlighting is a must! I've added support for inline comments, as vaguely-defined as they may be in the spec. Also fixed up some number format regex errors that made themselves known when comments were added. Thanks for the work on it thus far.