bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#59720: 30.0.50; python-ts-mode: match/case is not fontified properl


From: Yuan Fu
Subject: bug#59720: 30.0.50; python-ts-mode: match/case is not fontified properly
Date: Thu, 1 Dec 2022 19:40:10 -0800

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]