toml icon indicating copy to clipboard operation
toml copied to clipboard

Comments that Precede TOML lines

Open amunchet opened this issue 3 years ago • 1 comments

I have a rather large TOML file template that I did not generate (Telegraf's configuration file). The comments for each section and property precede the relevant bits - this PR allows a flag to be set in the decoder to properly retain these comments. Currently toml looks for comments that immediately follow - the default behavior is not changed and the relevant tests currently pass.

I hope this helps someone else trying to generate documentation from TOML comments.

amunchet avatar Jul 18 '21 01:07 amunchet

(Thanks for doing this PR, I'd love to have this as well!)

wimax-grapl avatar Aug 04 '21 22:08 wimax-grapl