Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Improve C++ highlighting for sized type specifiers (#25362)

Arseny Kapoulkinedabc35b257fe
diff --git a/crates/languages/src/cpp/highlights.scm b/crates/languages/src/cpp/highlights.scm
index b05e8cd6f97..6fa8bd7b085 100644
--- a/crates/languages/src/cpp/highlights.scm
+++ b/crates/languages/src/cpp/highlights.scm
@@ -69,6 +69,7 @@
(auto) @type
(type_identifier) @type
type :(primitive_type) @type.primitive
+(sized_type_specifier) @type.primitive
(requires_clause
constraint: (template_type
@@ -131,7 +132,6 @@ type :(primitive_type) @type.primitive
"using"
"virtual"
"while"
- (sized_type_specifier)
(storage_class_specifier)
(type_qualifier)
] @keyword