Skip to content

Support Python bodies for "short block" #2600

Open
@pokey

Description

It would be nice if in the following:

def aaa():
    bbb;
    ccc;

    ddd;

Saying "short block bat" referred to

    bbb;
    ccc;

We could probably do it by creating a version of SurroundingPairInteriorScopeHandler that looks not just for surrounding pair interiors but also interiors of any tree-sitter scopes that have an interior

Although there is a case to be made that what "short block" really wants to be looking at is indentation level 🤔. Would be a very different impl than what we just made tho I think 😅

Metadata

Assignees

No one assigned

    Labels

    lang-pythonIssues related to Python programming language support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions