From: Yuan Fu Date: Thu, 9 Nov 2023 07:46:32 +0000 (-0800) Subject: Fix treesit-simple-indent-presets docstring (bug#67007) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=103ca678ac1a043c9afbb7a419adb7ddf7a624ef;p=emacs.git Fix treesit-simple-indent-presets docstring (bug#67007) * lisp/treesit.el (treesit-simple-indent-presets): Fix docstring. * doc/lispref/modes.texi (Parser-based Indentation): Fix example. --- diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index 4a54d6ec290..8cdbe1149ca 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi @@ -5087,7 +5087,7 @@ this matcher doesn't check that argument. For example, to match the first child where parent is @code{argument_list}, use @example -(match nil "argument_list" nil nil 0 0) +(match nil "argument_list" nil 0 0) @end example In addition, @var{node-type} can be a special value @code{null}, diff --git a/lisp/treesit.el b/lisp/treesit.el index c37e7b6b5b7..962a6fc3cf8 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -1322,7 +1322,7 @@ MATCHER: NODE's index in PARENT. Therefore, to match the first child where PARENT is \"argument_list\", use - (match nil \"argument_list\" nil nil 0 0). + (match nil \"argument_list\" nil 0 0). NODE-TYPE, PARENT-TYPE, and NODE-FIELD are regexps. NODE-TYPE can also be `null', which matches when NODE is nil.