Add containing range APIs to query cursor

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-authored-by: dino <dinojoaocosta@gmail.com>
Co-authored-by: John Tur <john-tur@outlook.com>
Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
Co-authored-by: dino <dinojoaocosta@gmail.com>
Co-authored-by: Will Lillis <will.lillis24@gmail.com>
This commit is contained in:
Piotr Osiewicz 2025-10-02 19:02:05 +02:00 committed by Will Lillis
parent 7d3feeae9a
commit c0b1710f8a
13 changed files with 420 additions and 34 deletions

View file

@ -36,10 +36,20 @@ The path to a file that contains paths to source files in which the query will b
The range of byte offsets in which the query will be executed. The format is `start_byte:end_byte`.
### `--containing-byte-range <BYTE_RANGE>`
The range of byte offsets in which the query will be executed. Only the matches that are fully contained within the provided
byte range will be returned.
### `--row-range <ROW_RANGE>`
The range of rows in which the query will be executed. The format is `start_row:end_row`.
### `--containing-row-range <ROW_RANGE>`
The range of rows in which the query will be executed. Only the matches that are fully contained within the provided row range
will be returned.
### `--scope <SCOPE>`
The language scope to use for parsing and querying. This is useful when the language is ambiguous.