]> git.eshelyaron.com Git - emacs.git/commit
Improve tree-sitter docs
authorBasil L. Contovounesios <contovob@tcd.ie>
Sun, 11 Jun 2023 14:19:28 +0000 (15:19 +0100)
committerBasil L. Contovounesios <contovob@tcd.ie>
Tue, 13 Jun 2023 16:22:16 +0000 (17:22 +0100)
commit28478574961db23288ba4f6c78fe8e2f5470e0e6
tree440df866dbbd648eb01aa43415198afe5478c876
parent0e9307eb2b8a7ee527427164b9d07f8232d5c34f
Improve tree-sitter docs

* doc/lispref/positions.texi (List Motion): Incorporate more
accurate description of treesit-defun-type-regexp from
'(elisp) Tree-sitter Major Modes', replacing that duplicate
entry (bug#64018).

* doc/lispref/parsing.texi (Parsing Program Source)
(Language Grammar, Using Parser, Retrieving Nodes)
(Accessing Node Information, Pattern Matching, Multiple Languages):
(Tree-sitter Major Modes):
* doc/lispref/modes.texi (Parser-based Font Lock): Improve wording,
grammar, punctuation, and markup.  Fix typos.
(Parser-based Indentation): Ditto.  Document indent rule presets
field-is, catch-all, nth-sibling, grand-parent, and
great-grand-parent.

* lisp/treesit.el (treesit-simple-indent-presets): Mention field-is,
catch-all, nth-sibling, grand-parent, great-grand-parent in
docstring.
(treesit-major-mode-setup, treesit-explore-mode): Improve
docstring/commentary grammar.
doc/lispref/modes.texi
doc/lispref/parsing.texi
doc/lispref/positions.texi
lisp/treesit.el