]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix docstrings in treesit.el
authorYuan Fu <casouri@gmail.com>
Sun, 25 Sep 2022 02:39:10 +0000 (19:39 -0700)
committerYuan Fu <casouri@gmail.com>
Sun, 25 Sep 2022 04:11:30 +0000 (21:11 -0700)
* lisp/treesit.el (treesit-font-lock-rules)
(treesit-inspect-mode): Fix docstrings.

lisp/treesit.el

index 9bdff83da8932201bc7004067708225a3713a94b..def2e6259e96b33eeba686aba67c3353ed79020a 100644 (file)
@@ -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