GNU bug report logs -
#66154
30.0.50; Extract java-ts-mode's feature list
Previous Next
Reported by: Augustin Chéneau (BTuin) <btuin <at> mailo.com>
Date: Fri, 22 Sep 2023 11:34:02 UTC
Severity: normal
Found in version 30.0.50
Fixed in version 30.1
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #10 received at 66154-done <at> debbugs.gnu.org (full text, mbox):
Version: 30.1
Augustin Chéneau (BTuin) <btuin <at> 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.
This bug report was last modified 1 year and 290 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.