From: Yuan Fu <casouri@gmail.com>
To: Noah Peart <noah.v.peart@gmail.com>
Cc: 70665-done@debbugs.gnu.org
Subject: bug#70665: [PATCH] Add font-locking for typed parameters in python-ts-mode
Date: Wed, 1 May 2024 21:28:12 -0700 [thread overview]
Message-ID: <A4DDE0F2-BD55-4093-AE2E-3BEED4BEB49B@gmail.com> (raw)
In-Reply-To: <F0DB0014-5D85-45C8-9077-DECDABA943B5@gmail.com>
> On May 1, 2024, at 8:04 AM, Yuan Fu <casouri@gmail.com> wrote:
>
>
>
>> On Apr 30, 2024, at 3:27 AM, Noah Peart <noah.v.peart@gmail.com> wrote:
>>
>> Sorry, previous patch added an extra file by accident.
>>
>> Fixed patch attached.
>>
>>
>> On Tue, Apr 30, 2024 at 3:09 AM Noah Peart <noah.v.peart@gmail.com> wrote:
>> Tags: patch
>>
>> This patch adds a rule to python--treesit-settings to apply
>> font-lock-variable-name-face to typed parameters in python-ts-mode.
>> Currently, function parameters with type annotations are missing
>> font-lock-variable-name-face.
>>
>> For example, this patch adds font-locking in the following case:
>>
>> def foo(val: str) -> str
>> # ^ font-lock-variable-name-face
>
> Thank you!! Had some issue with my Emacs build last night. I’ll try to get it merged tonight.
>
> Yuan
Merged, thanks again!
Yuan
prev parent reply other threads:[~2024-05-02 4:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-30 10:09 bug#70665: [PATCH] Add font-locking for typed parameters in python-ts-mode Noah Peart
2024-04-30 10:27 ` Noah Peart
2024-05-01 15:04 ` Yuan Fu
2024-05-02 4:28 ` Yuan Fu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A4DDE0F2-BD55-4093-AE2E-3BEED4BEB49B@gmail.com \
--to=casouri@gmail.com \
--cc=70665-done@debbugs.gnu.org \
--cc=noah.v.peart@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).