5 Commits

Author SHA1 Message Date
Simon Paris
eaf9f0a5a4
fix: crash in comment parsing (#1890) 2023-08-21 10:42:53 -07:00
Iaroslav Kolbin
9011aac161
fix: handling properly fields with leading and trailing comments after field with trailing comment (#1593)
Co-authored-by: Iaroslav Kolbin <y.kolbin@team.bumble.com>
Co-authored-by: Alexander Fenster <fenster@google.com>
2021-05-07 17:04:51 -07:00
recih
7fd2e18215
feat: better comment parse (#1419)
* fix trailing comment in last line recognized as leading comment for current token.

* add preferTrailingComment to IParseOptions

Co-authored-by: Alexander Fenster <fenster@google.com>
2020-06-26 15:48:30 -07:00
Tim Cowley
299f0ceed2 https://github.com/protobufjs/protobuf.js/issues/1200
Make comments above multiline method definitions get parsed
successfully.
2019-04-16 16:38:17 -06:00
gideongoodwin
8400f87ad8 New: Add IParseOptions#alternateCommentMode (#968)
This PR adds a new option to IParseOptions, alternateCommentMode. When enabled, this activates an alternate comment parsing mode that preserves double-slash comments.
2018-02-06 13:39:58 +01:00