Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't highlight Rust documentation code examples #239

Open
wizard-28 opened this issue Aug 26, 2022 · 0 comments
Open

Doesn't highlight Rust documentation code examples #239

wizard-28 opened this issue Aug 26, 2022 · 0 comments

Comments

@wizard-28
Copy link

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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant