[issue29071] IDLE doesn't highlight f-strings properly

Serhiy Storchaka report at bugs.python.org
Sun Jan 1 01:35:59 EST 2017


Serhiy Storchaka added the comment:

The regular expression can be simplified using local flags:

-    stringprefix = (r"(\br|R|u|U|f|F|fr|Fr|fR|FR|rf|rF|Rf|RF"
-                    "|b|B|br|Br|bR|BR|rb|rB|Rb|RB)?")
+    stringprefix = r"(?i:\br|u|f|fr|rf|b|br|rb)?"

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29071>
_______________________________________


More information about the Python-bugs-list mailing list