From 6498514538297339f670e2de1980803ed466c2a0 Mon Sep 17 00:00:00 2001 From: Creasure Date: Wed, 3 Jul 2024 19:06:40 +0300 Subject: [PATCH] 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. --- lua/rose-pine.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/rose-pine.lua b/lua/rose-pine.lua index 159185c..0aa5c78 100644 --- a/lua/rose-pine.lua +++ b/lua/rose-pine.lua @@ -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" },