We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a15aeec commit bf94458Copy full SHA for bf94458
Lib/idlelib/colorizer.py
@@ -47,7 +47,8 @@ def make_pat():
47
name not in keyword.kwlist]
48
builtin = r"([^.'\"\\#]\b|^)" + any("BUILTIN", builtinlist) + r"\b"
49
comment = any("COMMENT", [r"#[^\n]*"])
50
- stringprefix = r"(?i:r|u|f|fr|rf|b|br|rb)?"
+ # Added 't' prefix and other combinations to support Python 3.14 template strings (PEP 701)
51
+ stringprefix = r"(?i:r|u|f|t|fr|rf|b|br|rb|rt|tr)?"
52
sqstring = stringprefix + r"'[^'\\\n]*(\\.[^'\\\n]*)*'?"
53
dqstring = stringprefix + r'"[^"\\\n]*(\\.[^"\\\n]*)*"?'
54
sq3string = stringprefix + r"'''[^'\\]*((\\.|'(?!''))[^'\\]*)*(''')?"
0 commit comments