From: Yuan Fu Date: Mon, 17 Oct 2022 05:29:15 +0000 (-0700) Subject: ; * src/treesit.c: Change commentary to reflect recent changes. X-Git-Tag: emacs-29.0.90~1825 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2349ecb3216bb9f7808ac58e5ce6abd6bcf90387;p=emacs.git ; * src/treesit.c: Change commentary to reflect recent changes. --- 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