From: Stefan Kangas <stefankangas@gmail.com>
To: "Augustin Chéneau" <btuin@mailo.com>
Cc: Yuan Fu <casouri@gmail.com>, 66154-done@debbugs.gnu.org
Subject: bug#66154: 30.0.50; Extract java-ts-mode's feature list
Date: Sat, 30 Sep 2023 16:23:00 -0700 [thread overview]
Message-ID: <CADwFkmkc6kpb-9JiC2s2MtLk0pyF5kbZOU6rR_LMbOCiAJ77zg@mail.gmail.com> (raw)
In-Reply-To: <3da12e44-4f04-4bfa-8230-924ef725da9c@mailo.com> ("Augustin Chéneau (BTuin)"'s message of "Fri, 22 Sep 2023 13:33:24 +0200")
Version: 30.1
Augustin Chéneau (BTuin) <btuin@mailo.com> writes:
> diff --git a/lisp/progmodes/java-ts-mode.el b/lisp/progmodes/java-ts-mode.el
> index 99d34789dcc..a6bc4c4bded 100644
> --- a/lisp/progmodes/java-ts-mode.el
> +++ b/lisp/progmodes/java-ts-mode.el
> @@ -303,6 +303,13 @@ java-ts-mode--defun-name
> (treesit-node-child-by-field-name node "name")
> t))))
>
> +
> +(defvar java-ts-mode--feature-list
> + '(( comment definition )
> + ( constant keyword string type)
> + ( annotation expression literal)
> + ( bracket delimiter operator)))
> +
> ;;;###autoload
> (define-derived-mode java-ts-mode prog-mode "Java"
> "Major mode for editing Java, powered by tree-sitter."
> @@ -382,11 +389,7 @@ java-ts-mode
>
> ;; Font-lock.
> (setq-local treesit-font-lock-settings java-ts-mode--font-lock-settings)
> - (setq-local treesit-font-lock-feature-list
> - '(( comment definition )
> - ( constant keyword string type)
> - ( annotation expression literal)
> - ( bracket delimiter operator)))
> + (setq-local treesit-font-lock-feature-list java-ts-mode--feature-list)
>
> ;; Imenu.
> (setq-local treesit-simple-imenu-settings
This change was already installed on master by Yuan Fu, so I'm closing
this bug now. Thanks.
prev parent reply other threads:[~2023-09-30 23:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-22 11:33 bug#66154: 30.0.50; Extract java-ts-mode's feature list Augustin Chéneau
2023-09-30 23:23 ` Stefan Kangas [this message]
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=CADwFkmkc6kpb-9JiC2s2MtLk0pyF5kbZOU6rR_LMbOCiAJ77zg@mail.gmail.com \
--to=stefankangas@gmail.com \
--cc=66154-done@debbugs.gnu.org \
--cc=btuin@mailo.com \
--cc=casouri@gmail.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).