]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix tree-sitter typos
authorYuan Fu <casouri@gmail.com>
Wed, 28 Dec 2022 08:32:37 +0000 (00:32 -0800)
committerYuan Fu <casouri@gmail.com>
Wed, 28 Dec 2022 08:32:37 +0000 (00:32 -0800)
* 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.

doc/lispref/parsing.texi
lisp/progmodes/java-ts-mode.el
test/src/treesit-tests.el

index c5500b0b37ec866fedf02daaac8a54209e45155b..b7199f071bc5bc1f9cafb641436b2ee2a411dc44 100644 (file)
@@ -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
index c389f795dd30777cd4db096889e027f39acd39f2..6dd69a44a4aeabf08876f44d02a8f258c2b8e41a 100644 (file)
@@ -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))
index ec686c69642ac889b3b7405f7b463c0bf6af668e..f7f0c96efa99c4e559052529d8297b4bf8003f98 100644 (file)
@@ -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)