mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-25 07:55:56 +00:00
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:
parent
953393f6ce
commit
87845a349d
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@
|
||||||
"volatile"
|
"volatile"
|
||||||
"while"
|
"while"
|
||||||
(primitive_type)
|
(primitive_type)
|
||||||
|
(sized_type_specifier)
|
||||||
(type_qualifier)
|
(type_qualifier)
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue