GNU bug report logs - #60355
29.0.60; Tree sitter incorrectly handles of PRED for treesit-defun-type-regexp

Previous Next

Package: emacs;

Reported by: Wilhelm H Kirschbaum <wkirschbaum <at> gmail.com>

Date: Tue, 27 Dec 2022 12:26:01 UTC

Severity: normal

Found in version 29.0.60

Fixed in version 29.1

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Yuan Fu <casouri <at> gmail.com>
To: Wilhelm H Kirschbaum <wkirschbaum <at> gmail.com>
Cc: 60355 <at> debbugs.gnu.org
Subject: bug#60355: 29.0.60; Tree sitter incorrectly handles of PRED for treesit-defun-type-regexp
Date: Wed, 28 Dec 2022 00:34:37 -0800

> On Dec 27, 2022, at 10:31 PM, Wilhelm H Kirschbaum <wkirschbaum <at> gmail.com> wrote:
> 
> 
> Thanks Yuan, just checked and both the fix and your suggestion works.
> 
> I see there is a typo in your last change:
> 
> @@ -310,7 +310,7 @@ java-ts-mode
>  ;; Imenu.
>  (setq-local treesit-simple-imenu-settings
>              '(("Class" "\\`class_declaration\\'" nil nil)
> -                ("Interface "\\`interface_declaration\\'" nil                 nil)
> +                ("Interface" "\\`interface_declaration\\'" nil nil)
>                ("Enum" "\\`record_declaration\\'" nil nil)
>                ("Method" "\\`method_declaration\\'" nil nil)))
>  (treesit-major-mode-setup))

Oops, was in a bit of hurry and forgot to byte-compile. Thanks for the catch!

Yuan



This bug report was last modified 2 years and 140 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.