unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Benjamin Leis via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 70614@debbugs.gnu.org
Subject: bug#70614: Wrong simple imenu definition for java
Date: Sat, 27 Apr 2024 18:45:10 +0000	[thread overview]
Message-ID: <SN6PR08MB5326F17F77FC76AB8E41AD4A8B152@SN6PR08MB5326.namprd08.prod.outlook.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 729 bytes --]

I noticed the treesitter imenu definitions for java in java-ts-mode.el have the following:

  ;; Imenu.
  (setq-local treesit-simple-imenu-settings
              '(("Class" \\`class_declaration\\'</%60class_declaration/'> nil nil)
                ("Interface" \\`interface_declaration\\'</%60interface_declaration/'> nil nil)
                ("Enum" \\`record_declaration\\'</%60record_declaration/'> nil nil)
                ("Method" \\`method_declaration\\'</%60method_declaration/'> nil nil)))
  (treesit-major-mode-setup))

  The 3rd definition for enums should either be for “Record” if that was the intention or match against \\`enum_declaration</%60enum_declaration>   if it really was meant for enums.

Ben

[-- Attachment #2: Type: text/html, Size: 2923 bytes --]

             reply	other threads:[~2024-04-27 18:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-27 18:45 Benjamin Leis via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-04-30  5:06 ` bug#70614: Wrong simple imenu definition for java Yuan Fu
2024-04-30 16:34   ` Benjamin Leis via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-04-30 18:30     ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-04-30 20:55       ` Benjamin Leis via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-01  1:10       ` Yuan Fu
2024-05-01 12:00         ` Eli Zaretskii
2024-04-30 18:27   ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SN6PR08MB5326F17F77FC76AB8E41AD4A8B152@SN6PR08MB5326.namprd08.prod.outlook.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=70614@debbugs.gnu.org \
    --cc=benjamin.leis@servicenow.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).