emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/treesit-fold f297d8a664 204/417: update


From: ELPA Syncer
Subject: [nongnu] elpa/treesit-fold f297d8a664 204/417: update
Date: Mon, 1 Jul 2024 10:02:26 -0400 (EDT)

branch: elpa/treesit-fold
commit f297d8a66436e37c1f76036c9eb3d34c251aa1f4
Author: Jen-Chieh <jcs090218@gmail.com>
Commit: Jen-Chieh <jcs090218@gmail.com>

    update
---
 README.md | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 763e6c44f6..9074a2e107 100644
--- a/README.md
+++ b/README.md
@@ -27,6 +27,7 @@ to provide code folding base on the tree-sitter syntax tree.
     - [🔰 Contribute](#🔰-contribute)
         - [How to write a parser?](#how-to-write-a-parser)
             - [Where can I look for tree-sitter 
node?](#where-can-i-look-for-tree-sitter-node)
+            - [How do I create the function for the corresponding 
node?](#how-do-i-create-the-function-for-the-corresponding-node)
 
 <!-- markdown-toc end -->
 
@@ -216,5 +217,7 @@ Function takes 2 arguments, `node` and `offset`.
 
 * `node` - the targeting tree-sitter node; in this example, `block` will be the
 targeting node.
-* `offset` - (optiona) a cons consist of two integer. This is handy when you 
have
-similar rule with little of positioning adjustment.
+* `offset` - (optiona) a cons consist of two integers. This is handy when you 
have
+a similar rule with little of positioning adjustment. (`tree-sitter-[lang]`
+parsers are generally integrated with different authors, hence their naming
+and ruling are slightly different (+1/-1 position).)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]