From 103ca678ac1a043c9afbb7a419adb7ddf7a624ef Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Wed, 8 Nov 2023 23:46:32 -0800 Subject: [PATCH] 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. --- doc/lispref/modes.texi | 2 +- lisp/treesit.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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. -- 2.39.2