diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-06-28 16:28:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-28 16:28:52 +0200 |
commit | 785dcff90988261c1c2c72c82dfa3a1ed5b8986b (patch) | |
tree | f05f31a2d387a882fa150aa4a323545c49f36975 /src | |
parent | 5aaa1a1c0473d9e9ac824201f92ec65e190beeb7 (diff) | |
parent | 18354ca4a70c0d53e4eae1bc53d2daafade6d202 (diff) | |
download | rneovim-785dcff90988261c1c2c72c82dfa3a1ed5b8986b.tar.gz rneovim-785dcff90988261c1c2c72c82dfa3a1ed5b8986b.tar.bz2 rneovim-785dcff90988261c1c2c72c82dfa3a1ed5b8986b.zip |
Merge pull request #14915 from clason/ts-match-limit
fix(treesitter): set match limit for query cursors
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/lua/treesitter.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/lua/treesitter.c b/src/nvim/lua/treesitter.c index c186928ae2..11d30aae09 100644 --- a/src/nvim/lua/treesitter.c +++ b/src/nvim/lua/treesitter.c @@ -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); |