[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/treesit-fold e334470a17 203/417: update
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/treesit-fold e334470a17 203/417: update |
Date: |
Mon, 1 Jul 2024 10:02:26 -0400 (EDT) |
branch: elpa/treesit-fold
commit e334470a17d1d0c71e32d6f397d50e46d4a36564
Author: Jen-Chieh <jcs090218@gmail.com>
Commit: Jen-Chieh <jcs090218@gmail.com>
update
---
README.md | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index a3dab4c831..763e6c44f6 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,9 @@ to provide code folding base on the tree-sitter syntax tree.
- [🔨 Supported languages](#🔨-supported-languages)
- [⚖️ Indicators Mode](#⚖️-indicators-mode)
- [📝 Summary](#📝-summary)
- - [🔰 Contribution](#🔰-contribution)
+ - [🔰 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)
<!-- markdown-toc end -->
@@ -207,3 +209,12 @@ implementation. In the above example, `block` node is
defined in the
> Make sure you look into the correct repository. Repositories are managed
> under
> [tree-sitter-langs](https://github.com/emacs-tree-sitter/tree-sitter-langs)'s
> using the git submodule. Some tree-sitter module aren't using the latest
> version!
+
+#### How do I create the function for the corresponding node?
+
+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.
- [nongnu] elpa/treesit-fold d2f88cbf1b 123/417: Add parser, (continued)
- [nongnu] elpa/treesit-fold d2f88cbf1b 123/417: Add parser, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 1b54cdc9fc 139/417: Update doc, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 3d1be710a6 200/417: Update README.md, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 1bc43aa561 254/417: updated line-reminder compatibility in README (#50), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 27c6bc4819 265/417: feature(parser): Add support for python docstring (#58), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 663dcac0a9 301/417: chore(deps): bump actions/checkout from 3 to 4 (#84), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 704a0463ed 357/417: fixed merge conflict, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 46fdb65c77 395/417: feat: Add hook after indicator refresh, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold a39f3bbe48 117/417: WIP for C preprocessor, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold af2679860f 129/417: Def prog, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold e334470a17 203/417: update,
ELPA Syncer <=
- [nongnu] elpa/treesit-fold 7667a37644 268/417: fix(indicators): Warning 'when' with empty body, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold b19f6f54bf 371/417: feat: Add Haxe support, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold de6d9ae174 255/417: docs(README.md): Improve instruction for line-reminder, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold a70c9ab017 327/417: feat: Add Groovy support (#98), ELPA Syncer, 2024/07/01