mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
add parse before for_each_tree
This commit is contained in:
parent
42fc28ba91
commit
8a5582f67f
1 changed files with 1 additions and 0 deletions
|
|
@ -437,6 +437,7 @@ function M.get_capture_matches_recursively(bufnr, capture_or_fn, query_type)
|
|||
local matches = {}
|
||||
|
||||
if parser then
|
||||
parser:parse(false)
|
||||
parser:for_each_tree(function(tree, lang_tree)
|
||||
local lang = lang_tree:lang()
|
||||
local capture, type_ = type_fn(lang, tree, lang_tree)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue