Skip to content

Python: augmented_assignments #643

Open
@simonmandlik

Description

Is your feature request related to a problem? Please describe.
Currently, python queries cover only standard assignments like x = 1. Augmented assignments like x += 1 could be supported as well.

Describe the solution you'd like
Should be just a matter of adding something like

(augmented_assignment
  left: (_) @assignment.lhs
  right: (_) @assignment.inner @assignment.rhs) @assignment.outer
  left: (_) @assignment.inner)

(augmented_assignment
  left: (_) @assignment.inner)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions