1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00

Fix java-ts-mode tests (bug#65738)

* admin/notes/tree-sitter/build-module/batch.sh (languages):
Add Java.
* lisp/progmodes/java-ts-mode.el (java-ts-mode): Pass a list
to 'treesit-thing-settings'.
This commit is contained in:
john muhl 2023-09-04 11:36:42 -05:00 committed by Eli Zaretskii
parent 2e5511c5aa
commit a412d3c46c
2 changed files with 3 additions and 2 deletions

View File

@ -13,6 +13,7 @@ languages=(
'go-mod'
'heex'
'html'
'java'
'javascript'
'json'
'python'

View File

@ -356,7 +356,7 @@ Return nil if there is no name or if NODE is not a defun node."
(setq-local treesit-defun-name-function #'java-ts-mode--defun-name)
(setq-local treesit-thing-settings
`(java
`((java
(sexp ,(rx (or "annotation"
"parenthesized_expression"
"argument_list"
@ -378,7 +378,7 @@ Return nil if there is no name or if NODE is not a defun node."
"import_declaration")))
(text ,(regexp-opt '("line_comment"
"block_comment"
"text_block")))))
"text_block"))))))
;; Font-lock.
(setq-local treesit-font-lock-settings java-ts-mode--font-lock-settings)