diff options
author | Yuan Fu <casouri@gmail.com> | 2022-12-28 00:32:37 -0800 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2022-12-28 00:32:37 -0800 |
commit | eedc9d79aed0c795b6f0687bc49993cb626c4039 (patch) | |
tree | 875fa1790769f00c91222684222ed1f2f1298f24 | |
parent | 248c13dcfe1b9618811a6fe67e967b25b1a8f139 (diff) | |
download | emacs-eedc9d79aed.tar.gz |
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.
-rw-r--r-- | doc/lispref/parsing.texi | 1 | ||||
-rw-r--r-- | lisp/progmodes/java-ts-mode.el | 2 | ||||
-rw-r--r-- | 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 c5500b0b37e..b7199f071bc 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 c389f795dd3..6dd69a44a4a 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 ec686c69642..f7f0c96efa9 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) |