Improve Rust macro highlighting (#28182)
Release Notes: - Improved Rust macro highlighting | Zed 0.180.2 | With this PR | | --- | --- | |  |  | ```rust macro_rules! square { ($e:expr) => { $e * $e }; } ``` - `$var`: `variable` - `expr`: `type`
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
(identifier) @variable
|
||||
(metavariable) @variable
|
||||
(type_identifier) @type
|
||||
(fragment_specifier) @type
|
||||
(primitive_type) @type.builtin
|
||||
(self) @variable.special
|
||||
(field_identifier) @property
|
||||
|
||||
Reference in New Issue
Block a user