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
syntax highlighting for c++ removes font-lock-variable-name-face #53
Comments
(lambda ()
(setq-local tree-sitter-hl-use-font-lock-keywords t)
(add-function :filter-return (local 'tree-sitter-hl-face-mapping-function)
(lambda (face)
(unless (memq face '(tree-sitter-hl-face:variable))
face)))) However,
Yeah, this is a general issue with the default highlighting queries included in most grammar repositories, which seem to be geared more towards GitHub's use cases. As a temporary workaround, you can override the C/C++ query files ( |
Did you copy both |
That did the trick! thank you, awesome project btw. Wish I knew rust so I could be helpful. |
btw your missing might also want to consider adding scope operator |
The Rust part is actually more or less done. You can help with the Lisp part as well :)
Yeah, I'll add those. |
currently syntax highlighting in c++ is too much. When everything is highlighted on the page nothing becomes discernible. Currently I need to set
tree-sitter-hl-face:variable
to inherit fromdefault
just to regain some sanity. But then I lose variable name highlighting (during a variables declaration that is). How can I retain some features from the default font lock (such asfont-lock-variable-name-face
) without turning off tree-sitter?The text was updated successfully, but these errors were encountered: