Improve C++ highlighting for sized type specifiers (#25362)
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](https://github.com/zed-industries/zed/pull/18016) moved primitive types from `@keyword` to `@type`, and this PR adjusts the sized type specifier to follow suit. Before this change:  After this change:  Release Notes: - Improved C++ syntax highlighting for sized type specifiers.
This commit is contained in:
parent
8f40bcc86c
commit
dabc35b257
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue