[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/tree-sitter 2349ecb321 2/4: ; * src/treesit.c: Change commentary
From: |
Yuan Fu |
Subject: |
feature/tree-sitter 2349ecb321 2/4: ; * src/treesit.c: Change commentary to reflect recent changes. |
Date: |
Mon, 17 Oct 2022 04:52:54 -0400 (EDT) |
branch: feature/tree-sitter
commit 2349ecb3216bb9f7808ac58e5ce6abd6bcf90387
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>
; * src/treesit.c: Change commentary to reflect recent changes.
---
src/treesit.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/treesit.c b/src/treesit.c
index 10af37981b..df974f7bf2 100644
--- a/src/treesit.c
+++ b/src/treesit.c
@@ -328,8 +328,10 @@ init_treesit_functions (void)
Initializing tree-sitter: there are two entry points to tree-sitter
functions: 'treesit-parser-create' and
- 'treesit-language-available-p'. Therefore we only need to call
- initialization function in those two functions.
+ 'treesit-language-available-p'. Technically we only need to call
+ initialization function in those two functions, but in reality we
+ check at the beginning of every lisp function. That should be more
+ fool-proof.
Tree-sitter offset (0-based) and buffer position (1-based):
tree-sitter offset + buffer position = buffer position