[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tree sitter: allowing access to `ts_tree_get_changed_ranges()' from
From: |
Eli Zaretskii |
Subject: |
Re: Tree sitter: allowing access to `ts_tree_get_changed_ranges()' from elisp |
Date: |
Sat, 26 Nov 2022 17:32:31 +0200 |
> From: Simon Pugnet <simon@polaris64.net>
> Date: Sat, 26 Nov 2022 15:57:33 +0100
>
> I've checked src/treesit.c and I can see that there is a
> `ts_tree_get_changed_ranges()' function, presumably from the
> underlying tree sitter library. However I don't think this is being
> exposed to elisp. Would it be possible to allow this information to be
> provided to elisp somehow?
It's exposed to Lisp via the parser's after-change notifiers. See
treesit-parser-add-notifier.