[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tree-sitter c8eeaa4ae4: ; * lisp/treesit.el (treesit-traverse-forward):
From: |
Yuan Fu |
Subject: |
tree-sitter c8eeaa4ae4: ; * lisp/treesit.el (treesit-traverse-forward): Fix docstring. |
Date: |
Sat, 18 Jun 2022 19:58:55 -0400 (EDT) |
branch: tree-sitter
commit c8eeaa4ae4aea05ccf66f415be20842d8447bad7
Author: Yuan Fu <yuan@debian-BULLSEYE-live-builder-AMD64>
Commit: Yuan Fu <yuan@debian-BULLSEYE-live-builder-AMD64>
; * lisp/treesit.el (treesit-traverse-forward): Fix docstring.
---
lisp/treesit.el | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/lisp/treesit.el b/lisp/treesit.el
index 3cfafd0d15..cf5001eebc 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -309,15 +309,14 @@ below where NODE is marked 1, traverse as numbered:
o o 2 7 +-+-+ +--+--+
| | | | |
10 11 13 14 15
-
-DEPTH can be a positive integer, 0, nil, or 'up. A positive
+DEPTH can be a positive integer, 0, nil, or \\='up. A positive
integer or 0 means go DEPTH deep counting from NODE. A nil means
-no limit. And a symbol 'up means go upwards only: only traverse
+no limit. And a symbol \\='up means go upwards only: only traverse
sibling and parent, never go down to children.
-The difference between 0 and 'up is subtle: in the above example,
+The difference between 0 and \\='up is subtle: in the above example,
if given 0 as DEPTH, node 1 3 4 5 6 8 9 12 16 are visited; if
-given 'up as DEPTH, only node 1 3 4 8 16 are visited."
+given \\='up as DEPTH, only node 1 3 4 8 16 are visited."
;; First try NODE's subtree, but only under these conditions: if
;; DEPTH is a number, it has to be greater than 0, if it's a symbol,
;; it cannot be 'up.