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:
Michael Davis 2022-10-03 09:56:50 -05:00 committed by GitHub
parent 576c34f84e
commit 4a3b776b78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -253,6 +253,9 @@
(function_item
name: (identifier) @function)
(function_signature_item
name: (identifier) @function)
; ---
; Macros
; ---