No syntax highlight for C++ with tree-sitter #135
-
When I use C++-ts-mode and installed language grammar, open C++ file there is no syntax highlighting for most parts, only for Does that mean I need to install some extra package to get that? Looks like |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 14 replies
-
Which version of Emacs you are using? Try to evaluate |
Beta Was this translation helpful? Give feedback.
-
i have same question ~ |
Beta Was this translation helpful? Give feedback.
-
After I reinstalled the new version of minemacs, I can no longer use c++-ts-mode normally. I have a headache. |
Beta Was this translation helpful? Give feedback.
-
I managed to find the cause of the issue. It seems that the Tree-Sitter C++ grammar causes the issue after v0.22.0. I've pushed a fix b10bca5 to force You need to update MinEmacs to the last commit and remove the Can you please confirm that the issue is fixed for you? EditI've opened a PR in |
Beta Was this translation helpful? Give feedback.
@emacsbliss @donneyluck
I managed to find the cause of the issue. It seems that the Tree-Sitter C++ grammar causes the issue after v0.22.0. I've pushed a fix b10bca5 to force
treesit-auto
to use the v0.22.0 of the grammar, and this fixes the problem for me.You need to update MinEmacs to the last commit and remove the
~/.emacs.d/local/tree-sitter/libtree-sitter-cpp.so
file, restart Emacs, then runtreesit-auto-install-all
.Can you please confirm that the issue is fixed for you?
Edit
I've opened a PR in
treesit-auto
to fix the grammar revision to v0.22.0 until the issue get fixed renzmann/treesit-auto#106.