Skip to content

How to use exact and include mode meantime? #34

@cesaryuan

Description

@cesaryuan

For example, I want the following query

(() => {
    function needExactMatch() {
        var a = 1;
        var a = 2;
    }
})()

to match

(() => {
    OtherStatements1;
    OtherStatements2;
    function needExactMatch() {
        var a = 1;
        var a = 2;
    }
    OtherStatements;
})()

and not match

(() => {
    OtherStatements1;
    OtherStatements2;
    function needExactMatch() {
        OtherStatements;
        var a = 1;
        OtherStatements;
        var a = 2;
        OtherStatements;
    }
    OtherStatements;
})()

Maybe some multiple statements wildcard like $$$$ cound be imported?

So I can use this query in exact mode to achieve this.

(() => {
    $$$$;
    function needExactMatch() {
        var a = 1;
        var a = 2;
    }
    $$$$;
})()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions