From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70465: [PATCH] Add font-locking rule for Rust function signatures Date: Fri, 19 Apr 2024 13:47:47 +0300 Message-ID: <86ttjxbpd8.fsf@gnu.org> References: <25F19856-6D74-4C71-A249-F9C44CABAF20@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15382"; mail-complaints-to="usenet@ciao.gmane.io" Cc: noah.v.peart@gmail.com, 70465@debbugs.gnu.org To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 19 12:49:27 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rxlo7-0003nh-0T for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Apr 2024 12:49:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxlna-00040h-4g; Fri, 19 Apr 2024 06:48:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxlnU-0003yO-6G for bug-gnu-emacs@gnu.org; Fri, 19 Apr 2024 06:48:48 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rxlnT-0005MP-UF for bug-gnu-emacs@gnu.org; Fri, 19 Apr 2024 06:48:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rxlnh-0004Wu-VE for bug-gnu-emacs@gnu.org; Fri, 19 Apr 2024 06:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Apr 2024 10:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70465 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 70465-submit@debbugs.gnu.org id=B70465.171352369416933 (code B ref 70465); Fri, 19 Apr 2024 10:49:01 +0000 Original-Received: (at 70465) by debbugs.gnu.org; 19 Apr 2024 10:48:14 +0000 Original-Received: from localhost ([127.0.0.1]:58050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rxlmw-0004P2-8q for submit@debbugs.gnu.org; Fri, 19 Apr 2024 06:48:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rxlmt-0004O1-7L for 70465@debbugs.gnu.org; Fri, 19 Apr 2024 06:48:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxlmZ-000571-I8; Fri, 19 Apr 2024 06:47:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=+EgXNjIX668GaSPDGdS+BHSUuW9m2oNCRIoTvGq2H8U=; b=OD8ULWYgK4r/3u8EMmZ+ NY8FH/7rg+GrHEauOZ9F2+gNcgV1nXdFXYqEHNsOVmtiUOpKwZri5jmXwWQWlLeZbJJx/otY8ZPOv zJbNVnbek0b+WtBsLKqNWm4NLJ1eTbwfOSj/jKLZrf1QsK8p/K9wAxvuZw9TCUawpWStllbDmIb9I nhtwNnx/V9jUuJWFKF3iuIJEBCOmBZey9jyaayQYKyXbjSW70OJPV+vqe5drUp4ZxpiAZ2AtOyX+E 6095mygZmUlp8UnR6v1TeJg+PxexuXVWhoIB9huo/qjrYihPphuVki5VpyPUk/hnJjHWaJodnOHQY jBb5Fe1IUhMt2g==; In-Reply-To: <25F19856-6D74-4C71-A249-F9C44CABAF20@gmail.com> (message from Yuan Fu on Fri, 19 Apr 2024 00:24:49 -0700) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:283661 Archived-At: > Cc: 70465@debbugs.gnu.org > From: Yuan Fu > Date: Fri, 19 Apr 2024 00:24:49 -0700 > > > Noah Peart 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. Since this is an enhancement, not a bugfix, it should go to master. Please be sure to add the bug number to the commit log message when you install this. Thanks.