Closed kung-foo closed 4 years ago
@kung-foo Thank you for your suggestion!
I agree with you. Besides, I guess allowing the comment with no newline wouldn't bother anyone.
I fixed it.
This only came up because I selected a large part of a proto file and commented it out for testing. Not because I usually write comments at the bottom of a file :)
@kung-foo That makes sense! Thank you for your clear explanation.
Looks like https://github.com/yoheimuta/go-protoparser/blob/master/internal/lexer/scanner/comment.go#L9-L17 is a bit too strict