Revert "Capture shorthand_field_initializer
and modules in Rust highlights (#35842)"
This reverts commit 896a35f7be
.
This commit is contained in:
parent
69127d2bea
commit
b6535a1fd2
1 changed files with 3 additions and 14 deletions
|
@ -6,9 +6,6 @@
|
|||
(self) @variable.special
|
||||
(field_identifier) @property
|
||||
|
||||
(shorthand_field_initializer
|
||||
(identifier) @property)
|
||||
|
||||
(trait_item name: (type_identifier) @type.interface)
|
||||
(impl_item trait: (type_identifier) @type.interface)
|
||||
(abstract_type trait: (type_identifier) @type.interface)
|
||||
|
@ -41,20 +38,11 @@
|
|||
(identifier) @function.special
|
||||
(scoped_identifier
|
||||
name: (identifier) @function.special)
|
||||
]
|
||||
"!" @function.special)
|
||||
])
|
||||
|
||||
(macro_definition
|
||||
name: (identifier) @function.special.definition)
|
||||
|
||||
(mod_item
|
||||
name: (identifier) @module)
|
||||
|
||||
(visibility_modifier [
|
||||
(crate) @keyword
|
||||
(super) @keyword
|
||||
])
|
||||
|
||||
; Identifier conventions
|
||||
|
||||
; Assume uppercase names are types/enum-constructors
|
||||
|
@ -127,7 +115,9 @@
|
|||
"where"
|
||||
"while"
|
||||
"yield"
|
||||
(crate)
|
||||
(mutable_specifier)
|
||||
(super)
|
||||
] @keyword
|
||||
|
||||
[
|
||||
|
@ -199,7 +189,6 @@
|
|||
operator: "/" @operator
|
||||
|
||||
(lifetime) @lifetime
|
||||
(lifetime (identifier) @lifetime)
|
||||
|
||||
(parameter (identifier) @variable.parameter)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue