mirror of
https://github.com/helix-editor/helix.git
synced 2025-01-19 05:27:07 +04:00
rust: Highlight function signatures as functions (#4073)
This stanza highlights functions within trait definitions. For example, in: pub trait Widget { fn render(self, area: Rect, buf: &mut Buffer); } `render` is currently highlighted as a variable. With this change it's highlighted as a function.
This commit is contained in:
parent
576c34f84e
commit
4a3b776b78
@ -253,6 +253,9 @@
|
||||
(function_item
|
||||
name: (identifier) @function)
|
||||
|
||||
(function_signature_item
|
||||
name: (identifier) @function)
|
||||
|
||||
; ---
|
||||
; Macros
|
||||
; ---
|
||||
|
Loading…
Reference in New Issue
Block a user