From 87845a349d5803aeec8768c9ea9ab18783c7023b Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sat, 8 Jun 2024 05:26:10 -0500 Subject: [PATCH] cpp: Highlight sized type specifiers as keywords (#12751) Without this, `unsigned` or `unsigned int` is not highlighted properly: `int` is a primitive_type but `unsigned` is a sized_type_specifier. This is already handled in C as both are part of @type highlight group. Before: ![image](https://github.com/zed-industries/zed/assets/1106629/7210b769-9dff-428c-9e4f-55b652f91674) After: ![image](https://github.com/zed-industries/zed/assets/1106629/8661c412-30f0-4b44-a4a2-1860a0b56a4e) Release Notes: - N/A --- crates/languages/src/cpp/highlights.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/languages/src/cpp/highlights.scm b/crates/languages/src/cpp/highlights.scm index 680dac8fa51957ce088081fa5eb7be6505cacb04..22b8505a10439ee713d3e9dff6ba66f708a9bf9d 100644 --- a/crates/languages/src/cpp/highlights.scm +++ b/crates/languages/src/cpp/highlights.scm @@ -91,6 +91,7 @@ "volatile" "while" (primitive_type) + (sized_type_specifier) (type_qualifier) ] @keyword