Skip to content

Add support for C++/Rust templates/generics #19

@nitnelave

Description

@nitnelave

AFAIU, it should be a simple matter of adding "<>" as "parenthesis-like" objects: it could pose problems with expressions with comparisons, though:

template <typename T, typename P>
void do_the_thing(int i) {
  do_the_thing_impl(i, i > 3);
}

If the cursor is on "typename P" and I press "da,", I expect that the text ", typename P" is deleted. But if it's on the "i" in "i > 3", "da," should delete ", i > 3" (and not just ", i " as if ">" was the end of the argument).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions