--- a/QScintilla/TypingCompleters/CompleterRuby.py Fri Apr 13 22:32:32 2018 +0200 +++ b/QScintilla/TypingCompleters/CompleterRuby.py Sat Apr 14 15:08:24 2018 +0200 @@ -142,7 +142,7 @@ self.editor.insert(self.__hereRX.cap(1)) elif self.__indentBrace and re.search(":\r?\n", txt) is None: openCount = len(re.findall("[({[]", txt)) - closeCount = len(re.findall("[)}\]]", txt)) + closeCount = len(re.findall(r"[)}\]]", txt)) if openCount > closeCount: openCount = 0 closeCount = 0 @@ -152,7 +152,7 @@ lastOpenIndex = openList[index].start() txt2 = txt[lastOpenIndex:] openCount = len(re.findall("[({[]", txt2)) - closeCount = len(re.findall("[)}\]]", txt2)) + closeCount = len(re.findall(r"[)}\]]", txt2)) index -= 1 if openCount > closeCount and lastOpenIndex > col: self.editor.insert(' ' * (lastOpenIndex - col + 1))