From f071e61d106e6f3c17b660e3aa1a5b7890ea5d41 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Sat, 24 Sep 2022 19:39:10 -0700 Subject: [PATCH] ; Fix docstrings in treesit.el * lisp/treesit.el (treesit-font-lock-rules) (treesit-inspect-mode): Fix docstrings. --- lisp/treesit.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.5