emacs-tree-sitter / elisp-tree-sitter

Emacs Lisp bindings for tree-sitter
https://emacs-tree-sitter.github.io
MIT License
815 stars 73 forks source link

Doesn't highlight Rust documentation code examples #239

Open wizard-28 opened 1 year ago

wizard-28 commented 1 year ago

image The code example in the documentation isn't highlighted. I'm using Doom Emacs with the tree-sitter module enabled.

Here's my tree-sitter config:

(global-tree-sitter-mode)
(add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode)
;; HACK: https://github.com/emacs-tree-sitter/elisp-tree-sitter/issues/64
(setq-default spell-fu-faces-include
              '(tree-sitter-hl-face:comment
                tree-sitter-hl-face:doc
                tree-sitter-hl-face:string
                font-lock-comment-face
                font-lock-doc-face
                font-lock-string-face))