changeset 6501:c20997809afe

Python t-string support from Lexilla.
author Neil <nyamatongwe@gmail.com>
date Sat, 04 Oct 2025 21:37:30 +1000
parents 497b350396b5
children d876d1bc39dd
files doc/SciTEDoc.html doc/SciTEHistory.html src/SciTEProps.cxx
diffstat 3 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/doc/SciTEDoc.html	Sat Oct 04 21:36:47 2025 +1000
+++ b/doc/SciTEDoc.html	Sat Oct 04 21:37:30 2025 +1000
@@ -2871,6 +2871,10 @@
         <td>lexer.python.strings.over.newline</td>
         <td>Set to 1 to allow strings to span newline characters.</td>
         </tr>
+        <tr id='property-lexer.python.strings.t'>
+        <td>lexer.python.strings.t</td>
+        <td>Set to 0 to not recognise Python 3.14 t-string literals t"var={var}".</td>
+        </tr>
         <tr id='property-lexer.python.strings.u'>
         <td>lexer.python.strings.u</td>
         <td>Set to 0 to not recognise Python Unicode literals u"x" as used before Python 3.</td>
--- a/doc/SciTEHistory.html	Sat Oct 04 21:36:47 2025 +1000
+++ b/doc/SciTEHistory.html	Sat Oct 04 21:37:30 2025 +1000
@@ -648,6 +648,10 @@
 		Progress: Treat '.' as part of compound identifiers instead of as an operator between identifiers.
 		<a href="https://github.com/ScintillaOrg/lexilla/pull/316">Pull request #316</a>.
 		</li>
+		<li>
+		Python: Support t-strings t\"var={var}\" added by Python 3.14.
+		<a href="https://github.com/ScintillaOrg/lexilla/pull/328">Pull request #328</a>.
+		</li>
 	</ul>
 	<li>Scintilla 5.5.8</li>
 	<ul>
--- a/src/SciTEProps.cxx	Sat Oct 04 21:36:47 2025 +1000
+++ b/src/SciTEProps.cxx	Sat Oct 04 21:37:30 2025 +1000
@@ -610,6 +610,7 @@
 	"lexer.python.strings.f",
 	"lexer.python.strings.f.pep.701",
 	"lexer.python.strings.over.newline",
+	"lexer.python.strings.t",
 	"lexer.python.strings.u",
 	"lexer.python.unicode.identifiers",
 	"lexer.r.escape.sequence",