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

comments between multilined parenthesis #13

Open
t3rn0 opened this issue Apr 17, 2023 · 0 comments
Open

comments between multilined parenthesis #13

t3rn0 opened this issue Apr 17, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@t3rn0
Copy link
Owner

t3rn0 commented Apr 17, 2023

If the list (tuple, dict, call, ...) is written across multiple lines there can be comments to certain elements of the list:

source = [
    # c1
    a,
    b,  # c2
]

If we parse-unpase it the comments will go out of the list. This may result in the loss of some potentially important info:

# c1
# c2
uparsed = [a, b]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant