[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/tree-sitter 98ed6db34f 2/4: ; Fix docstring graph alignment in F
From: |
Yuan Fu |
Subject: |
feature/tree-sitter 98ed6db34f 2/4: ; Fix docstring graph alignment in Ftreesit_search_forward |
Date: |
Fri, 11 Nov 2022 23:06:35 -0500 (EST) |
branch: feature/tree-sitter
commit 98ed6db34f76cfe37d70d8ad82d29fcfa2a56e24
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>
; Fix docstring graph alignment in Ftreesit_search_forward
* src/treesit.c (Ftreesit_search_forward): Replace tabs with spaces.
---
src/treesit.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/treesit.c b/src/treesit.c
index 63785b2122..854d7754f0 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. */)