[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#59470: 29.0.50; python-ts-mode does not always correctly fontify de
From: |
Yuan Fu |
Subject: |
bug#59470: 29.0.50; python-ts-mode does not always correctly fontify decorators |
Date: |
Tue, 22 Nov 2022 18:50:43 -0800 |
Brian Leung <leungbk@posteo.net> writes:
> Open the following Python file with python-ts-mode:
>
> from functools import lru_cache
>
> @lru_cache(None)
> def dp(i):
> return i
>
> The decorator is not fontified correctly when "None" is fully typed out;
> meanwhile, when "None" is mistyped (for example as "Non"), everything
> inside the parens is fontified using the decorator face.
>
> Ideally, only the "@lru_cache" text is fontified as a decorator, while
> the contents inside the parens are fontified independently.
Thanks, I’ve fixes this in 5efa65755d9.