1
0
mirror of https://github.com/helix-editor/helix synced 2024-11-10 10:34:45 +01:00

Improve rust syntax highlighting (#1295)

- Highlight fragment specifiers (expr, tt, in macro
  definitions) with @type.
- Highlight attributes as macros
This commit is contained in:
Gokul Soumya 2021-12-20 08:17:40 +05:30 committed by GitHub
parent 23091c9d29
commit f1c634326b
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -242,10 +242,9 @@
; ---
; Macros
; ---
(meta_item
(identifier) @attribute)
(attribute_item) @attribute
(identifier) @function.macro)
(inner_attribute_item) @attribute
(macro_definition
@ -259,7 +258,7 @@
"!" @function.macro)
(metavariable) @variable.parameter
(fragment_specifier) @variable.parameter
(fragment_specifier) @type