emacs-devel
[Top][All Lists]
Advanced

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

Re: Question on getting tree-sitter matches


From: Abin Simon
Subject: Re: Question on getting tree-sitter matches
Date: Wed, 15 Mar 2023 09:54:25 +0530

> 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.



reply via email to

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