[TxMt] Problems with f-strings in Python Bundle
Tuk Bredsdorff
tuk at tiktuk.net
Tue Mar 19 12:47:00 UTC 2019
Hi all,
There is some problems with expressions in f-strings in the Python bundle.
One is that escape-completion does not work inside them at all.
The other is that syntax highlighting often fails. For example for these:
f"{2 * 37}"
f'{person["name"]}'
f"{'Eric Idle'}"
In neither of these f-strings the braces or expressions are highlighted.
Does anybody know how to fix these? I guess it’s just some small adjustments to the syntax bundle but it’s a rather daunting list of regular expressions in there.
F-strings are a great enhancement to Python and it could be great to have them probably supported.
I have created issues on https://github.com/textmate/python.tmbundle/issues/ for both problems.
Best regards,
Tuk
More information about the textmate
mailing list