emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 eedc9d79ae: Fix tree-sitter typos


From: Yuan Fu
Subject: emacs-29 eedc9d79ae: Fix tree-sitter typos
Date: Wed, 28 Dec 2022 03:33:46 -0500 (EST)

branch: emacs-29
commit eedc9d79aed0c795b6f0687bc49993cb626c4039
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    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.
---
 doc/lispref/parsing.texi       | 1 -
 lisp/progmodes/java-ts-mode.el | 2 +-
 test/src/treesit-tests.el      | 2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/doc/lispref/parsing.texi b/doc/lispref/parsing.texi
index c5500b0b37..b7199f071b 100644
--- a/doc/lispref/parsing.texi
+++ b/doc/lispref/parsing.texi
@@ -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
diff --git a/lisp/progmodes/java-ts-mode.el b/lisp/progmodes/java-ts-mode.el
index c389f795dd..6dd69a44a4 100644
--- a/lisp/progmodes/java-ts-mode.el
+++ b/lisp/progmodes/java-ts-mode.el
@@ -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))
diff --git a/test/src/treesit-tests.el b/test/src/treesit-tests.el
index ec686c6964..f7f0c96efa 100644
--- a/test/src/treesit-tests.el
+++ b/test/src/treesit-tests.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]