Skip to content

Commit

Permalink
Improve C++ highlighting for sized type specifiers
Browse files Browse the repository at this point in the history
For consistency, sized type specifiers should be highlighted the same
way as primitive types, to make sure 'unsigned', 'int' and 'unsigned
int' are all the same color. A previous change moved primitive types
from @Keyword to @type, and this adjusts the sized type specifier to
follow suit.
  • Loading branch information
zeux committed Feb 21, 2025
1 parent 2e302b1 commit f22dc67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/languages/src/cpp/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
(auto) @type
(type_identifier) @type
type :(primitive_type) @type.primitive
(sized_type_specifier) @type.primitive

(requires_clause
constraint: (template_type
Expand Down Expand Up @@ -131,7 +132,6 @@ type :(primitive_type) @type.primitive
"using"
"virtual"
"while"
(sized_type_specifier)
(storage_class_specifier)
(type_qualifier)
] @keyword
Expand Down

0 comments on commit f22dc67

Please sign in to comment.