Skip to content

No syntax highlight for C++ with tree-sitter #135

Closed Answered by abougouffa
emacsbliss asked this question in Q&A
Discussion options

You must be logged in to vote

@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 run treesit-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.

Replies: 4 comments 14 replies

Comment options

You must be logged in to vote
2 replies
@emacsbliss
Comment options

@abougouffa
Comment options

Comment options

You must be logged in to vote
5 replies
@abougouffa
Comment options

@donneyluck
Comment options

@abougouffa
Comment options

@donneyluck
Comment options

@donneyluck
Comment options

Comment options

You must be logged in to vote
6 replies
@donneyluck
Comment options

@abougouffa
Comment options

@donneyluck
Comment options

@abougouffa
Comment options

@abougouffa
Comment options

Comment options

You must be logged in to vote
1 reply
@donneyluck
Comment options

Answer selected by abougouffa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants