diff options
| author | Yuan Fu <casouri@gmail.com> | 2022-10-31 15:11:44 -0700 |
|---|---|---|
| committer | Yuan Fu <casouri@gmail.com> | 2022-10-31 15:35:52 -0700 |
| commit | 4ef50ccd3f8bc177ef6dd7183a9268bb8057f064 (patch) | |
| tree | 945508a2e5ea4c2d0ef0e2f24c51ddb74f4eef0d /src | |
| parent | b49250ada978c7b21cb93177c874c81a27fa4fec (diff) | |
; Explain the BEG and END argument in treesit-query-capture better
* doc/lispref/parsing.texi (Pattern Matching): Update manual.
* src/treesit.c (Ftreesit_query_capture): Update docstring.
Diffstat (limited to 'src')
| -rw-r--r-- | src/treesit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/treesit.c b/src/treesit.c index e4be065d94a..9324b8b1006 100644 --- a/src/treesit.c +++ b/src/treesit.c @@ -2178,8 +2178,10 @@ either string or sexp form. When using repeatedly, a compiled query is much faster than a string or sexp one, so it is recommend to compile your query if it will be used repeatedly. -BEG and END, if both non-nil, specify the region of buffer positions -in which the query is executed. +BEG and END, if both non-nil, specify the region of buffer positions +in which the query is executed. Any matching node whose span overlaps +with the region between BEG and END are captured, it doesn't have to +be completely in the region. If NODE-ONLY is non-nil, return a list of nodes. |
