on master help sign in
Improve rust syntax highlighting (#1295)
f1c6343Gokul Soumya
runtime/queries/rust/highlights.scm+3−4
@@ -242,10 +242,9 @@
242; ---
242; ---
243; Macros
243; Macros
244; ---
244; ---
245−
246(meta_item
245(meta_item
247− (identifier) @attribute)
246+ (identifier) @function.macro)
248−(attribute_item) @attribute
247+
249(inner_attribute_item) @attribute
248(inner_attribute_item) @attribute
250
249
251(macro_definition
250(macro_definition
@@ -259,7 +258,7 @@
259 "!" @function.macro)
258 "!" @function.macro)
260
259
261(metavariable) @variable.parameter
260(metavariable) @variable.parameter
262−(fragment_specifier) @variable.parameter
261+(fragment_specifier) @type
263
262
264
263
265
264