diff options
Diffstat (limited to 'src/treesit.c')
-rw-r--r-- | src/treesit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/treesit.c b/src/treesit.c index 63785b2122c..854d7754f0a 100644 --- a/src/treesit.c +++ b/src/treesit.c @@ -2649,15 +2649,15 @@ Return the first matched node, or nil if none matches. For a tree like below, where START is marked by S, traverse as numbered from 1 to 12: - 12 - | + 12 + | S--------3----------11 | | | o--o-+--o 1--+--2 6--+-----10 | | | | o o +-+-+ +--+--+ - | | | | | - 4 5 7 8 9 + | | | | | + 4 5 7 8 9 Note that this function doesn't traverse the subtree of START, and it always traverse leaf nodes first, then upwards. */) |