From 2349ecb3216bb9f7808ac58e5ce6abd6bcf90387 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Sun, 16 Oct 2022 22:29:15 -0700 Subject: [PATCH] ; * 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 10af37981b4..df974f7bf2a 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 -- 2.39.2