Skip to content

Commit 489f926

Browse files
committed
doc: Improve docstring of `tree-sitter-hl-default-patterns'
1 parent 153c9dd commit 489f926

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lisp/tree-sitter-hl.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,9 @@ the following code disables keyword highlighting:
276276
"Default syntax highlighting patterns.
277277
This should be set by major modes that want to integrate with `tree-sitter-hl'.
278278
It plays a similar role to `font-lock-defaults'.
279-
It is a string used to query tree sitter. The format is described at
280-
https://tree-sitter.github.io/tree-sitter/syntax-highlighting#highlights.")
279+
280+
It is either a string, or a vector of S-expressions. For more details on the
281+
syntax, see https://emacs-tree-sitter.github.io/syntax-highlighting/queries/.")
281282

282283
(defvar tree-sitter-hl--patterns-alist nil
283284
"Additional language-specific syntax highlighting patterns.

0 commit comments

Comments
 (0)