on master help sign in
Improve rust syntax highlighting (#1295)

- Highlight fragment specifiers (expr, tt, in macro definitions) with @type. - Highlight attributes as macros

commitf1c634326b83e4c7f9e4a7c8a504e561f602466c authorGokul Soumya <gokulps15@gmail.com> dateMon 20 Dec 2021, 08:17 (5 years ago) parent23091c9
1 file changed+3−4
runtime/queries/rust/highlights.scm+3−4
runtime/queries/rust/highlights.scm+3−4
@@ -242,10 +242,9 @@
242242; ---
243243; Macros
244244; ---
245−
246245(meta_item
247− (identifier) @attribute)
248−(attribute_item) @attribute
246+ (identifier) @function.macro)
247+
249248(inner_attribute_item) @attribute
250249
251250(macro_definition
@@ -259,7 +258,7 @@
259258 "!" @function.macro)
260259
261260(metavariable) @variable.parameter
262−(fragment_specifier) @variable.parameter
261+(fragment_specifier) @type
263262
264263
265264