Skip to content

Highlight some #if XXX ... #endif to comment #1817

Answered by HighCommander4
Freed-Wu asked this question in Q&A
Discussion options

You must be logged in to vote

Clangd 14 produces comment semantic tokens for inactive preprocessor branches.

The appearance for a particular kind of semantic token is configured on the client side. I'm not sure how to configure it for coc-clangd, you can ask about this at https://github.com/clangd/coc-clangd/issues. Note that https://github.com/clangd/coc-clangd#configurations suggests that semantic highlighting in general needs to be enabled using semanticTokens.enable.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Freed-Wu
Comment options

@HighCommander4
Comment options

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