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

Keep track of the positions of comments #27

Open
ruckustboom opened this issue Aug 9, 2017 · 1 comment
Open

Keep track of the positions of comments #27

ruckustboom opened this issue Aug 9, 2017 · 1 comment
Assignees
Milestone

Comments

@ruckustboom
Copy link

In TOML, when you parse the following

# I'm just messing around with it
title = "TOML Example" # This comment comes at the end of the line

It doesn't keep track of where the comments came from, so rendering it back out results in

# I'm just messing around with it
# This comment comes at the end of the line
title = "TOML Example"

It would be cool if it could keep track of where the comment came from and render it accordingly.

Tested with 3.0.1

@TheElectronWill
Copy link
Owner

With the modified comment storage that I explained in issue #29 this would be possible :-)

Right now I'm in holidays without my computer, but I'll look at it when I'll come back.

@TheElectronWill TheElectronWill self-assigned this Sep 1, 2017
@TheElectronWill TheElectronWill changed the title TOML Comment Enhancement Keep track of the positions of comments Mar 6, 2018
@TheElectronWill TheElectronWill modified the milestones: v3.1, Backlog May 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants