mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 22:18:14 +03:00
Add traits in Rust highlights (#10731)
Question: I use type.super here because I made a similar change to the ruby syntax to apply the same style to superclasses. With this in mind, should this change be renamed to type.trait or should it be renamed to something like type.italic so the ruby syntax or any other language can all use type.italic? or maybe something else altogether. <img width="597" alt="image" src="https://github.com/zed-industries/zed/assets/7274458/9d02dba0-75a4-4439-9f31-fd8aa0873075"> Release Notes: - Exposed Rust traits as `type.interface` for individual syntax theming.
This commit is contained in:
parent
7f81bfb6b7
commit
c96a96b3ce
@ -3,6 +3,12 @@
|
|||||||
(self) @variable.special
|
(self) @variable.special
|
||||||
(field_identifier) @property
|
(field_identifier) @property
|
||||||
|
|
||||||
|
(trait_item name: (type_identifier) @type.interface)
|
||||||
|
(impl_item trait: (type_identifier) @type.interface)
|
||||||
|
(abstract_type trait: (type_identifier) @type.interface)
|
||||||
|
(dynamic_type trait: (type_identifier) @type.interface)
|
||||||
|
(trait_bounds (type_identifier) @type.interface)
|
||||||
|
|
||||||
(call_expression
|
(call_expression
|
||||||
function: [
|
function: [
|
||||||
(identifier) @function
|
(identifier) @function
|
||||||
|
Loading…
Reference in New Issue
Block a user