|
From: | Juri Linkov |
Subject: | bug#77906: 31.0.50; php-js-mode and js-ts-mode: treesit-show-paren-data--categorize: peculiar error: ("Cannot find the definition of the predicate in `treesit-thing-settings'" list) |
Date: | Tue, 22 Apr 2025 20:36:03 +0300 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) |
>> So now fixed the off-by-one error in treesit-show-paren-data—categorize. > > Thanks! Now added this docstring to the internal function 'treesit-show-paren-data--categorize': "Return a list suitable for `show-paren-data-function' (which see). If the optional argument END-P is non-nil, interpret the position POS as belonging to the node that ends before POS (by subtracting 1 from POS)." I guess more functions will need such flag, e.g. 'backward-sexp' at the end of the range doesn't skip to the embedded node's start.
[Prev in Thread] | Current Thread | [Next in Thread] |