GNU bug report logs - #70465
[PATCH] Add font-locking rule for Rust function signatures

Previous Next

Package: emacs;

Reported by: Noah Peart <noah.v.peart <at> gmail.com>

Date: Fri, 19 Apr 2024 02:03:04 UTC

Severity: normal

Tags: patch

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Yuan Fu <casouri <at> gmail.com>
To: Noah Peart <noah.v.peart <at> gmail.com>
Cc: 70465 <at> debbugs.gnu.org
Subject: bug#70465: [PATCH] Add font-locking rule for Rust function  signatures
Date: Fri, 19 Apr 2024 00:24:49 -0700
Noah Peart <noah.v.peart <at> gmail.com> writes:

> Tags: patch
>
> Adds a rule to font-lock Rust function signatures and missing function
> modifier "default" to rust-ts-mode--keywords.
>
> The new rule adds font-locking to signatures as in the following
> example:
>
>     trait Foo {
>         fn foo() -> String;
> //            ^ font-lock-function-name-face
>     }

Thanks!

Eli, for this kind of small fix patches, should it go to emacs-29 or
master? I don’t think it’ll affect the stability of emacs-29, but in the
same time it isn’t an urgent bug either.

Yuan




This bug report was last modified 1 year and 93 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.