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.
This commit is contained in:
Yuan Fu 2023-11-08 23:46:32 -08:00
parent b7871cefe7
commit 103ca678ac
No known key found for this signature in database
GPG key ID: 56E19BC57664A442
2 changed files with 2 additions and 2 deletions

View file

@ -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 first child where parent is @code{argument_list}, use
@example @example
(match nil "argument_list" nil nil 0 0) (match nil "argument_list" nil 0 0)
@end example @end example
In addition, @var{node-type} can be a special value @code{null}, In addition, @var{node-type} can be a special value @code{null},

View file

@ -1322,7 +1322,7 @@ MATCHER:
NODE's index in PARENT. Therefore, to match the first child NODE's index in PARENT. Therefore, to match the first child
where PARENT is \"argument_list\", use 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, PARENT-TYPE, and NODE-FIELD are regexps.
NODE-TYPE can also be `null', which matches when NODE is nil. NODE-TYPE can also be `null', which matches when NODE is nil.