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

Properly deal with other comments #31

Open
looztra opened this issue Apr 1, 2020 · 0 comments
Open

Properly deal with other comments #31

looztra opened this issue Apr 1, 2020 · 0 comments

Comments

@looztra
Copy link
Owner

looztra commented Apr 1, 2020

For the moment yamkix only deals with some types of commands when it has to "move" them from their source position (with -c).

Some comments that are not taken into accout :

  • file start and end comment (we may want to force them to be at col 0 if that's not the case for instance)
  • start and end comments in maps and lists (the question will be : where do we want them positionned?)
---
# like that?
a: 1
b:
# Hello
# World
  c: 2
  d: 3
---
# or like that?
a: 1
b:
  # Hello (same col as the first value)
  # World
  c: 2
  d: 3

other case :

# before test1 (top level)
test1:
# before test2
  test2:
  # after test2
    test3: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant