[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 103ca678ac1: Fix treesit-simple-indent-presets docstring (bug#6
From: |
Yuan Fu |
Subject: |
emacs-29 103ca678ac1: Fix treesit-simple-indent-presets docstring (bug#67007) |
Date: |
Thu, 9 Nov 2023 02:49:24 -0500 (EST) |
branch: emacs-29
commit 103ca678ac1a043c9afbb7a419adb7ddf7a624ef
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 103ca678ac1: Fix treesit-simple-indent-presets docstring (bug#67007),
Yuan Fu <=