mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-27 07:37:33 +00:00
Fix tree-sitter typos
* doc/lispref/parsing.texi (Tree-sitter major modes): * lisp/progmodes/java-ts-mode.el: * test/src/treesit-tests.el (treesit-defun-navigation-nested-4): Fix typo.
This commit is contained in:
parent
248c13dcfe
commit
eedc9d79ae
@ -1737,7 +1737,6 @@ navigation functions for @code{beginning-of-defun} and
|
||||
@item
|
||||
If @code{treesit-defun-name-function} is non-@code{nil}, it sets up
|
||||
add-log functions used by @code{add-log-current-defun}.
|
||||
@end itemize
|
||||
|
||||
@item
|
||||
If @code{treesit-simple-imenu-settings} (@pxref{Imenu}) is
|
||||
|
@ -310,7 +310,7 @@ Return nil if there is no name or if NODE is not a defun node."
|
||||
;; Imenu.
|
||||
(setq-local treesit-simple-imenu-settings
|
||||
'(("Class" "\\`class_declaration\\'" nil nil)
|
||||
("Interface "\\`interface_declaration\\'" nil nil)
|
||||
("Interface" "\\`interface_declaration\\'" nil nil)
|
||||
("Enum" "\\`record_declaration\\'" nil nil)
|
||||
("Method" "\\`method_declaration\\'" nil nil)))
|
||||
(treesit-major-mode-setup))
|
||||
|
@ -1046,7 +1046,7 @@ the prev-beg, now point should be at marker 103\", etc.")
|
||||
(ert-deftest treesit-defun-navigation-nested-4 ()
|
||||
"Test defun navigation using Elixir.
|
||||
This tests bug#60355."
|
||||
(skip-unless (treesit-language-available-p 'bash))
|
||||
(skip-unless (treesit-language-available-p 'elixir))
|
||||
;; Nested defun navigation
|
||||
(let ((treesit-defun-tactic 'nested)
|
||||
(pred (lambda (node)
|
||||
|
Loading…
Reference in New Issue
Block a user