emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/tree-sitter f071e61d10 10/15: ; Fix docstrings in treesit.el


From: Yuan Fu
Subject: feature/tree-sitter f071e61d10 10/15: ; Fix docstrings in treesit.el
Date: Sun, 25 Sep 2022 00:11:59 -0400 (EDT)

branch: feature/tree-sitter
commit f071e61d106e6f3c17b660e3aa1a5b7890ea5d41
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    ; 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 9bdff83da8..def2e6259e 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]