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.
pull/4085/head
Michael Davis 2 years ago committed by GitHub
parent 576c34f84e
commit 4a3b776b78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save