[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question on getting tree-sitter matches

From: Yuan Fu
Subject: Re: Question on getting tree-sitter matches
Date: Sun, 19 Mar 2023 14:59:58 -0700

> On Mar 14, 2023, at 9:24 PM, Abin Simon <mail@meain.io> wrote:
>> I see. We can add an optional argument to treesit-query-capture to toggle 
>> the “grouping” of matches, WDYT?
> That would work for my current usecase.
> With that said, I would like to point out that elisp-tree-sitter has two
> methods with one named captures returning a list of captures and one
> named matches which returns the "grouped" captures(along with pattern
> index). I'm not sure if these names have any semantic meaning.  From a
> quick scan of Neovim docs, they too seem to have two functions with
> similar names.

For your particular use, would it be better to add a separate function or a 
flag to treesit-query-capture?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]