From: Yuan Fu Date: Sun, 25 Sep 2022 02:39:10 +0000 (-0700) Subject: ; Fix docstrings in treesit.el X-Git-Tag: emacs-29.0.90~1873 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f071e61d106e6f3c17b660e3aa1a5b7890ea5d41;p=emacs.git ; Fix docstrings in treesit.el * lisp/treesit.el (treesit-font-lock-rules) (treesit-inspect-mode): Fix docstrings. --- diff --git a/lisp/treesit.el b/lisp/treesit.el index 9bdff83da89..def2e6259e9 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -336,10 +336,10 @@ Before each QUERY there could be :KEYWORD VALUE pairs that configure the query (and only that query). For example, (treesit-font-lock-rules - :language 'javascript - '((true) @font-lock-constant-face + :language \\='javascript + \\='((true) @font-lock-constant-face (false) @font-lock-constant-face) - :language 'html + :language \\='html \"(script_element) @font-lock-builtin-face\") For each QUERY, a :language keyword is required. Currently the @@ -803,7 +803,7 @@ in (`treesit-parser-list')." The mode-line displays - PARENT FIELD-NAME: (CHILD (GRAND-CHILD (...))) + PARENT FIELD-NAME: (CHILD FIELD_NAME: (GRAND-CHILD (...))) CHILD, GRAND-CHILD, and GRAND-GRAND-CHILD, etc, are nodes that have their beginning at point. And PARENT is the parent of