8000 comments between multilined parenthesis · Issue #13 · t3rn0/ast-comments · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
comments between multilined parenthesis #13
Open
@t3rn0

Description

@t3rn0

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0