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)

From: Juri Linkov <[email-masked]>
Date: Tue, 22 Apr 2025 20:36:03 +0300

>> 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.