Merge pull request #1076 from tree-sitter/cli-match-limit-warning
cli: Warn about queries that exceed match limit
This commit is contained in:
commit
108679ffdc
1 changed files with 6 additions and 0 deletions
|
|
@ -91,6 +91,12 @@ pub fn query_files_at_paths(
|
|||
}
|
||||
}
|
||||
}
|
||||
if query_cursor.did_exceed_match_limit() {
|
||||
writeln!(
|
||||
&mut stdout,
|
||||
" WARNING: Query exceeded maximum number of in-progress captures!"
|
||||
)?;
|
||||
}
|
||||
if should_test {
|
||||
query_testing::assert_expected_captures(results, path, &mut parser, language)?
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue