3 ms·
Interestingly, python f-strings changed their syntax at version 3.12, so highlighting should depend on the version.
by pama 2y ago
Interestingly, python f-strings changed their syntax at version 3.12, so highlighting should depend on the version.
- irdc 2y agoIt’s just that nesting them arbitrarily is now allowed, right? That shouldn’t matter much for a mere syntax highlighter then. And one could even argue that code that relies on this too much is not really for human consumption.
- pansa2 2y agoAlso, you can now use the same quote character that encloses an f-string within the {} expressions. That could make them harder to tokenize, because it makes it harder to recognise the end of the string.