mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	fix(treesitter): bump match limit up
This avoids ignoring too many match results, and avoid highlighting being blank in some files.
This commit is contained in:
		| @@ -1122,7 +1122,7 @@ static int node_rawquery(lua_State *L) | |||||||
|   // TODO(clason): API introduced after tree-sitter release 0.19.5 |   // TODO(clason): API introduced after tree-sitter release 0.19.5 | ||||||
|   // remove guard when minimum ts version is bumped to 0.19.6+ |   // remove guard when minimum ts version is bumped to 0.19.6+ | ||||||
| #ifdef NVIM_TS_HAS_SET_MATCH_LIMIT | #ifdef NVIM_TS_HAS_SET_MATCH_LIMIT | ||||||
|   ts_query_cursor_set_match_limit(cursor, 32); |   ts_query_cursor_set_match_limit(cursor, 64); | ||||||
| #endif | #endif | ||||||
|   ts_query_cursor_exec(cursor, query, node); |   ts_query_cursor_exec(cursor, query, node); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Thomas Vigouroux
					Thomas Vigouroux