Subject: Re: bug#66154: 30.0.50; Extract java-ts-mode's feature list

From: Stefan Kangas <[email-masked]>
Date: Sat, 30 Sep 2023 16:23:00 -0700

Version: 30.1

Augustin Chéneau (BTuin) <[email-masked]> 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.