fix: link @lsp.type.comment.c, @lsp.type.comment.cpp to @comment

It fixes branches of conditional directives like `#if` and `#ifdef` in C and C++
appearing as if they both are true, without breaking TODO comments.
This commit is contained in:
Creasure 2024-07-03 19:06:40 +03:00
commit 6498514538

View file

@ -407,6 +407,8 @@ local function set_highlights()
--- Semantic
["@lsp.type.comment"] = {},
["@lsp.type.comment.c"] = { link = "@comment" },
["@lsp.type.comment.cpp"] = { link = "@comment" },
["@lsp.type.enum"] = { link = "@type" },
["@lsp.type.interface"] = { link = "@interface" },
["@lsp.type.keyword"] = { link = "@keyword" },