QScintilla/MiniEditor.py

branch
maintenance
changeset 6273
0daf79d65080
parent 6247
5c677a7f7d51
child 6359
e78be0616e6e
--- a/QScintilla/MiniEditor.py	Mon Apr 02 12:04:56 2018 +0200
+++ b/QScintilla/MiniEditor.py	Tue May 01 12:03:52 2018 +0200
@@ -3194,10 +3194,10 @@
             cs = Qt.CaseInsensitive
         wc = self.__textEdit.wordCharacters()
         if wc is None:
-            regExp = QRegExp('[^\w_]', cs)
+            regExp = QRegExp(r'[^\w_]', cs)
         else:
-            wc = re.sub('\w', "", wc)
-            regExp = QRegExp('[^\w{0}]'.format(re.escape(wc)), cs)
+            wc = re.sub(r'\w', "", wc)
+            regExp = QRegExp(r'[^\w{0}]'.format(re.escape(wc)), cs)
         start = regExp.lastIndexIn(text, index) + 1
         end = regExp.indexIn(text, index)
         if start == end + 1 and index > 0:

eric ide

mercurial