mirror of https://github.com/helix-editor/helix
Improve rust syntax highlighting (#1295)
- Highlight fragment specifiers (expr, tt, in macro definitions) with @type. - Highlight attributes as macrospull/1232/head
parent
23091c9d29
commit
f1c634326b
|
@ -242,10 +242,9 @@
|
||||||
; ---
|
; ---
|
||||||
; Macros
|
; Macros
|
||||||
; ---
|
; ---
|
||||||
|
|
||||||
(meta_item
|
(meta_item
|
||||||
(identifier) @attribute)
|
(identifier) @function.macro)
|
||||||
(attribute_item) @attribute
|
|
||||||
(inner_attribute_item) @attribute
|
(inner_attribute_item) @attribute
|
||||||
|
|
||||||
(macro_definition
|
(macro_definition
|
||||||
|
@ -259,7 +258,7 @@
|
||||||
"!" @function.macro)
|
"!" @function.macro)
|
||||||
|
|
||||||
(metavariable) @variable.parameter
|
(metavariable) @variable.parameter
|
||||||
(fragment_specifier) @variable.parameter
|
(fragment_specifier) @type
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue