]> git.eshelyaron.com Git - emacs.git/commitdiff
Sync java-ts-mode.el
authorEshel Yaron <me@eshelyaron.com>
Sat, 19 Oct 2024 14:51:10 +0000 (16:51 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 19 Oct 2024 14:51:10 +0000 (16:51 +0200)
lisp/progmodes/java-ts-mode.el

index cf2ee101360f68cd39c1b115346654815e13b11b..177f914160c7f378db4f9bfca246f68717d7f329 100644 (file)
@@ -339,7 +339,7 @@ Return nil if there is no name or if NODE is not a defun node."
   (unless (treesit-ready-p 'java)
     (error "Tree-sitter for Java isn't available"))
 
-  (treesit-parser-create 'java)
+  (let ((primary-parser (treesit-parser-create 'java)))
 
     ;; Comments.
     (c-ts-common-comment-setup)
@@ -422,7 +422,7 @@ Return nil if there is no name or if NODE is not a defun node."
                    :embed 'doxygen
                    :host 'java
                    :local t
-                   `(((block_comment) @cap (:match "/\\*\\*" @cap))))))
+                   `(((block_comment) @cap (:match "/\\*\\*" @cap)))))))
 
   (setq-local treesit-font-lock-feature-list java-ts-mode--feature-list)