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
1 changed files with 3 additions and 0 deletions
|
@ -253,6 +253,9 @@
|
|||
(function_item
|
||||
name: (identifier) @function)
|
||||
|
||||
(function_signature_item
|
||||
name: (identifier) @function)
|
||||
|
||||
; ---
|
||||
; Macros
|
||||
; ---
|
||||
|
|
Loading…
Reference in a new issue