diff --git a/crates/language/src/syntax_map.rs b/crates/language/src/syntax_map.rs index 38aad007fe..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(64); + cursor.set_match_limit(1024); QueryCursorHandle(Some(cursor)) } } diff --git a/crates/languages/src/go.rs b/crates/languages/src/go.rs index 24e2ca2f56..689852e73f 100644 --- a/crates/languages/src/go.rs +++ b/crates/languages/src/go.rs @@ -946,6 +946,34 @@ mod tests { name: "test case 2", anotherStr: "bar", }, + { + name: "test case 3", + anotherStr: "fooo", + }, + { + name: "test case 4", + anotherStr: "baar", + }, + { + name: "test case 5", + anotherStr: "foooo", + }, + { + name: "test case 6", + anotherStr: "baaar", + }, + { + name: "test case 7", + anotherStr: "foooooo", + }, + { + name: "test case 8", + anotherStr: "baaaar", + }, + { + name: "test case 9", + anotherStr: "foooooooo", + }, } notATableTest := []struct{ @@ -1005,8 +1033,8 @@ mod tests { go_test_count ); assert!( - go_table_test_count == 2, - "Should find exactly 2 go-table-test-case, found: {}", + go_table_test_count == 9, + "Should find exactly 9 go-table-test-case, found: {}", go_table_test_count ); }