aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/java-ts-mode.el
diff options
context:
space:
mode:
authorStefan Kangas2023-01-23 01:34:39 +0100
committerStefan Kangas2023-01-23 01:34:39 +0100
commit0805972e4cab3493d172edf2e303486d7c3cb386 (patch)
treee806d00b1518012c00cdd6b8a0e29fac4c16bd5a /lisp/progmodes/java-ts-mode.el
parent8febda46c458f11270350d0b68c69d8a58b59f8d (diff)
parentb3de81a6ee3b379fc1dfb9a071e469365081f438 (diff)
downloademacs-0805972e4cab3493d172edf2e303486d7c3cb386.tar.gz
emacs-0805972e4cab3493d172edf2e303486d7c3cb386.zip
Merge from origin/emacs-29
b3de81a6ee3 MH-E: handle removal of mhparam libdir from nmh 1.8 d63e1a89518 Use point-min to anchor top-level constructs (bug#60602) 34793337783 * lisp/org/ob-ruby.el: Fix outdated comments. 472f1425985 ; ruby-ts-mode: Add a Version tag 0cf053648a4 ; ruby-ts-mode: Update font-lock features list in Commentary 67ee627c38d (project-try-vc): Add string-start and string-end anchors... 06953fc8e1d Make `keymap-set-after' work for menus dcd59457b48 Use `key-parse' in `keymap-lookup' 8904a26a9d2 Improve `keymap-set-after' documentation c7e02eaa3d9 Handle after arg correctly in `keymap-set-after' 628b6241763 Don't load erc-goodies atop erc.el 40cf494b7ce ; * etc/NEWS: Fix typos. 6b2f85caa6c Make tree-sitter based modes optional b56cf28b325 ; (ruby-ts--predefined-variables): Make it a little shorter d94dc606a09 ruby-ts-mode: Claw back half of the performance drop from... d0d34514097 (ruby-ts-mode): Rename 'builtin-functions' to 'builtin-fu... d66ac5285f7 ruby-ts-mode: Highlight builtin methods 370b1ac99ec ; ruby-ts-mode.el: Add customize-group mention to commentary 7b7b2b95138 Fix c-ts-mode indent (bug#60873) 7ca71d66dc7 Fix various problems in treesit-explore-mode (bug#60800) b7d6bb47ee5 ; * lisp/treesit.el (treesit-font-lock-fontify-region): M... 0c6bfeddb21 ; Update tree-sitter major mode manual c289786886b ; Add commentary and dostring in c-ts-mode # Conflicts: # etc/NEWS # lisp/progmodes/c-ts-mode.el # lisp/progmodes/go-ts-mode.el
Diffstat (limited to 'lisp/progmodes/java-ts-mode.el')
-rw-r--r--lisp/progmodes/java-ts-mode.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/java-ts-mode.el b/lisp/progmodes/java-ts-mode.el
index 03093e09805..532b3f5aefb 100644
--- a/lisp/progmodes/java-ts-mode.el
+++ b/lisp/progmodes/java-ts-mode.el
@@ -69,7 +69,7 @@
69 69
70(defvar java-ts-mode--indent-rules 70(defvar java-ts-mode--indent-rules
71 `((java 71 `((java
72 ((parent-is "program") parent-bol 0) 72 ((parent-is "program") point-min 0)
73 ((node-is "}") (and parent parent-bol) 0) 73 ((node-is "}") (and parent parent-bol) 0)
74 ((node-is ")") parent-bol 0) 74 ((node-is ")") parent-bol 0)
75 ((node-is "]") parent-bol 0) 75 ((node-is "]") parent-bol 0)
@@ -359,6 +359,9 @@ Return nil if there is no name or if NODE is not a defun node."
359 ("Method" "\\`method_declaration\\'" nil nil))) 359 ("Method" "\\`method_declaration\\'" nil nil)))
360 (treesit-major-mode-setup)) 360 (treesit-major-mode-setup))
361 361
362(if (treesit-ready-p 'java)
363 (add-to-list 'auto-mode-alist '("\\.java\\'" . java-ts-mode)))
364
362(provide 'java-ts-mode) 365(provide 'java-ts-mode)
363 366
364;;; java-ts-mode.el ends here 367;;; java-ts-mode.el ends here