Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Hello. Sometimes the
:...aspect of a format string is highlighted in its entirety but often times it's not. I would like to know if it's possible to make it so it's all under the same consistent scope or if it's by design that it doesn't. My main use case has to do with types using a custom__format__.For example:
I would have imagined both of these to fall under the same scope but they're not.
The first screenshot goes
source.python>meta.fstring.python>storage.type.format.pythonThe second screenshot goes
source.python>meta.function-call.python>meta.function-call.arguments.python>meta.fstring.pythonA regular line of code without using custom
__format__(e.g.{test:.2f}) goes assource.python>meta.function-call.python>meta.function-call.arguments.python>meta.fstring.python>storage.type.format.pythonwhich is what I would expect the other two to return as well, unless it's meant to be treated differently.