diff --git a/doc/emacs-tree-sitter.org b/doc/emacs-tree-sitter.org index acc46bd0..b3dda127 100644 --- a/doc/emacs-tree-sitter.org +++ b/doc/emacs-tree-sitter.org @@ -329,7 +329,7 @@ By default, when the highlighting query associates a node with ~CAPTURE-NAME~, i # TODO: Screenshots. #+begin_src emacs-lisp ;; Don't highlight strings, in any language. - (add-function :before-while 'tree-sitter-hl-face-mapping-function + (add-function :before-while tree-sitter-hl-face-mapping-function (lambda (capture-name) (not (string= capture-name "string")))) #+end_src @@ -368,7 +368,7 @@ Adding language-specific patterns: Adding buffer-local patterns: #+begin_src emacs-lisp ;; Map @rust.unsafe.use capture to a custom face. - (add-function :before-until 'tree-sitter-hl-face-mapping-function + (add-function :before-until tree-sitter-hl-face-mapping-function (lambda (capture-name) (pcase capture-name ("rust.unsafe.use" 'my-dangerous-code-pattern-face)))) @@ -385,7 +385,6 @@ Adding project-specific patterns through ~.dir-locals.el~: #+begin_src emacs-lisp ;; Highlight DEFUN macros (in Emacs's C source). ((c-mode . ((tree-sitter-hl--extra-patterns-list - . [((call_expression function: (identifier) @keyword arguments: (argument_list diff --git a/langs/CHANGELOG.md b/langs/CHANGELOG.md index e8011c36..788cb3e0 100644 --- a/langs/CHANGELOG.md +++ b/langs/CHANGELOG.md @@ -3,7 +3,7 @@ ## Unreleased ## 0.7.0 -- Replaced `#` with `.` in bundled highlighting queries' predicates origin/query-dot-predicate. +- Replaced `#` with `.` in bundled highlighting queries' predicates. ## 0.6.0 - Fixed the issue of `tree-sitter-langs` not being able to find grammars in gccemacs.