[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/tree-sitter 4ba76224ea: Minor doc fixes in treesit.el
From: |
Stefan Kangas |
Subject: |
feature/tree-sitter 4ba76224ea: Minor doc fixes in treesit.el |
Date: |
Fri, 28 Oct 2022 15:30:44 -0400 (EDT) |
branch: feature/tree-sitter
commit 4ba76224eaf5fade94438bf990bf5eb05912b530
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>
Minor doc fixes in treesit.el
* lisp/treesit.el (treesit-font-lock-rules)
(treesit-font-lock-settings): Minor doc fixes.
---
lisp/treesit.el | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/lisp/treesit.el b/lisp/treesit.el
index 3f9b9de1eb..8db4704823 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -395,7 +395,7 @@ For changes to this variable to take effect, run
The exact format of this variable is considered internal. One
should always use `treesit-font-lock-rules' to set this variable.
-Each SETTING is of form
+Each SETTING has the form:
(QUERY ENABLE FEATURE OVERRIDE)
@@ -435,18 +435,18 @@ configure the query (and only that query). For example,
\"(script_element) @font-lock-builtin-face\")
For each QUERY, a :language keyword and a :feature keyword is
-required. Each query's :feature is a symbol summarizing what does
+required. Each query's :feature is a symbol summarizing what does
the query fontify. It is used to allow users to enable/disable
certain features. See `treesit-font-lock-kind-list' for more.
Other keywords include:
- KEYWORD VALUE DESCRIPTION
- :override nil If the region already has a face,
- discard the new face
- t Always apply the new face
- append Append the new face to existing ones
- prepend Prepend the new face to existing ones
- keep Fill-in regions without an existing face
+ KEYWORD VALUE DESCRIPTION
+ :override nil If the region already has a face,
+ discard the new face.
+ t Always apply the new face.
+ `append' Append the new face to existing ones.
+ `prepend' Prepend the new face to existing ones.
+ `keep' Fill-in regions without an existing face.
Capture names in QUERY should be face names like
`font-lock-keyword-face'. The captured node will be fontified
@@ -555,7 +555,7 @@ If LOUDLY is non-nil, display some debugging information."
(ignore activate)
(let ((captures (treesit-query-capture
node query
- ;; Specifying the range is important. More
+ ;; Specifying the range is important. More
;; often than not, NODE will be the root
;; node, and if we don't specify the range,
;; we are basically querying the whole file.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- feature/tree-sitter 4ba76224ea: Minor doc fixes in treesit.el,
Stefan Kangas <=