From 5a085f0c1981928346188b8dc8d84d54be6466dd Mon Sep 17 00:00:00 2001 From: Lukas Spiss Date: Sun, 24 Aug 2025 21:53:37 +0100 Subject: [PATCH] fix: increase cursor match limit to 1024 --- crates/language/src/syntax_map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/language/src/syntax_map.rs b/crates/language/src/syntax_map.rs index 1a90d06a36..83fc5d08e4 100644 --- a/crates/language/src/syntax_map.rs +++ b/crates/language/src/syntax_map.rs @@ -1878,7 +1878,7 @@ impl<'a> Iterator for ByteChunks<'a> { impl QueryCursorHandle { pub fn new() -> Self { let mut cursor = QUERY_CURSORS.lock().pop().unwrap_or_default(); - cursor.set_match_limit(256); + cursor.set_match_limit(1024); QueryCursorHandle(Some(cursor)) } }