aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYuan Fu2022-10-16 22:29:15 -0700
committerYuan Fu2022-10-17 01:48:50 -0700
commit2349ecb3216bb9f7808ac58e5ce6abd6bcf90387 (patch)
treecbe43b2b2241b129cc5b2a0f89bf51cee3f3eb0c /src
parentbd13ce184bfaf43f905faff64c5306ff3518f892 (diff)
downloademacs-2349ecb3216bb9f7808ac58e5ce6abd6bcf90387.tar.gz
emacs-2349ecb3216bb9f7808ac58e5ce6abd6bcf90387.zip
; * src/treesit.c: Change commentary to reflect recent changes.
Diffstat (limited to 'src')
-rw-r--r--src/treesit.c6
1 files 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)
328 328
329 Initializing tree-sitter: there are two entry points to tree-sitter 329 Initializing tree-sitter: there are two entry points to tree-sitter
330 functions: 'treesit-parser-create' and 330 functions: 'treesit-parser-create' and
331 'treesit-language-available-p'. Therefore we only need to call 331 'treesit-language-available-p'. Technically we only need to call
332 initialization function in those two functions. 332 initialization function in those two functions, but in reality we
333 check at the beginning of every lisp function. That should be more
334 fool-proof.
333 335
334 Tree-sitter offset (0-based) and buffer position (1-based): 336 Tree-sitter offset (0-based) and buffer position (1-based):
335 tree-sitter offset + buffer position = buffer position 337 tree-sitter offset + buffer position = buffer position