mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
Merge pull request #14915 from clason/ts-match-limit
fix(treesitter): set match limit for query cursors
This commit is contained in:
commit
785dcff909
@ -1073,6 +1073,7 @@ static int node_rawquery(lua_State *L)
|
||||
// TODO(bfredl): these are expensive allegedly,
|
||||
// use a reuse list later on?
|
||||
TSQueryCursor *cursor = ts_query_cursor_new();
|
||||
ts_query_cursor_set_match_limit(cursor, 32);
|
||||
ts_query_cursor_exec(cursor, query, node);
|
||||
|
||||
bool captures = lua_toboolean(L, 3);
|
||||
|
Loading…
Reference in New Issue
Block a user