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
This commit is contained in:
Arseny Kapoulkine 2024-06-08 05:26:10 -05:00 committed by GitHub
parent 953393f6ce
commit 87845a349d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -91,6 +91,7 @@
"volatile" "volatile"
"while" "while"
(primitive_type) (primitive_type)
(sized_type_specifier)
(type_qualifier) (type_qualifier)
] @keyword ] @keyword