From: Yuan Fu <casouri@gmail.com>
To: "Daniel Martín" <mardani29@yahoo.es>
Cc: 59720-done@debbugs.gnu.org, mickey@masteringemacs.org
Subject: bug#59720: 30.0.50; python-ts-mode: match/case is not fontified properly
Date: Thu, 1 Dec 2022 19:40:10 -0800 [thread overview]
Message-ID: <1054E424-DD23-4E50-B661-511409F60628@gmail.com> (raw)
In-Reply-To: <87lens21xn.fsf@masteringemacs.org>
Daniel Martín <mardani29@yahoo.es> writes:
> Mickey Petersen <mickey@masteringemacs.org> writes:
>
>> 1. Visit a python file. It will use the regular python mode.
>> 2. Write:
>>
>> def foo():
>> match foo:
>> case 10:
>> pass
>>
>> 3. It is highlighted correctly: match and case are fontified with `font-lock-keyword-face'.
>> 4. Type M-x python-ts-mode.
>> 5. Highlighting is now off for match/case. Text properties for the `m' character are:
>>
>> Character code properties: customize what to show
>> name: LATIN SMALL LETTER M
>> general-category: Ll (Letter, Lowercase)
>> decomposition: (109) ('m')
>> uppercase: 77 (M)
>> titlecase: 77 (M)
>>
>> There are text properties here:
>> fontified t
>>
>
> The following patch solves the issue by adding "case" and "match" to the
> list of keywords that python-ts-mode recognizes.
Applied, thanks!
Yuan
prev parent reply other threads:[~2022-12-02 3:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-30 10:03 bug#59720: 30.0.50; python-ts-mode: match/case is not fontified properly Mickey Petersen
2022-11-30 15:16 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-02 3:40 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1054E424-DD23-4E50-B661-511409F60628@gmail.com \
--to=casouri@gmail.com \
--cc=59720-done@debbugs.gnu.org \
--cc=mardani29@yahoo.es \
--cc=mickey@masteringemacs.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.