[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 properly
From: |
Daniel Martín |
Subject: |
bug#59720: 30.0.50; python-ts-mode: match/case is not fontified properly |
Date: |
Wed, 30 Nov 2022 16:16:07 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) |
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.
0001-Add-case-and-match-to-python-treesit-keywords.patch
Description: Text Data