Mickey Petersen 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.