[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?
Yuan
- Question on getting tree-sitter matches, Abin Simon, 2023/03/12
- Re: Question on getting tree-sitter matches, Yuan Fu, 2023/03/12
- Re: Question on getting tree-sitter matches, Abin Simon, 2023/03/13
- Re: Question on getting tree-sitter matches, Yuan Fu, 2023/03/14
- Re: Question on getting tree-sitter matches, Abin Simon, 2023/03/15
- Re: Question on getting tree-sitter matches,
Yuan Fu <=
- Re: Question on getting tree-sitter matches, Abin Simon, 2023/03/20
- Re: Question on getting tree-sitter matches, Ergus, 2023/03/20
- Re: Question on getting tree-sitter matches, Yuan Fu, 2023/03/20
- Re: Question on getting tree-sitter matches, Eli Zaretskii, 2023/03/20