eric6/QScintilla/TypingCompleters/CompleterRuby.py

changeset 7267
aedc309827c7
parent 7229
53054eb5b15a
child 7281
8087ef6df2e4
--- a/eric6/QScintilla/TypingCompleters/CompleterRuby.py	Wed Sep 25 18:25:43 2019 +0200
+++ b/eric6/QScintilla/TypingCompleters/CompleterRuby.py	Wed Sep 25 18:37:35 2019 +0200
@@ -42,20 +42,20 @@
         Public slot called to reread the configuration parameters.
         """
         self.setEnabled(Preferences.getEditorTyping("Ruby/EnabledTypingAids"))
-        self.__insertClosingBrace = \
-            Preferences.getEditorTyping("Ruby/InsertClosingBrace")
-        self.__indentBrace = \
-            Preferences.getEditorTyping("Ruby/IndentBrace")
-        self.__skipBrace = \
-            Preferences.getEditorTyping("Ruby/SkipBrace")
-        self.__insertQuote = \
-            Preferences.getEditorTyping("Ruby/InsertQuote")
-        self.__insertBlank = \
-            Preferences.getEditorTyping("Ruby/InsertBlank")
-        self.__insertHereDoc = \
-            Preferences.getEditorTyping("Ruby/InsertHereDoc")
-        self.__insertInlineDoc = \
-            Preferences.getEditorTyping("Ruby/InsertInlineDoc")
+        self.__insertClosingBrace = Preferences.getEditorTyping(
+            "Ruby/InsertClosingBrace")
+        self.__indentBrace = Preferences.getEditorTyping(
+            "Ruby/IndentBrace")
+        self.__skipBrace = Preferences.getEditorTyping(
+            "Ruby/SkipBrace")
+        self.__insertQuote = Preferences.getEditorTyping(
+            "Ruby/InsertQuote")
+        self.__insertBlank = Preferences.getEditorTyping(
+            "Ruby/InsertBlank")
+        self.__insertHereDoc = Preferences.getEditorTyping(
+            "Ruby/InsertHereDoc")
+        self.__insertInlineDoc = Preferences.getEditorTyping(
+            "Ruby/InsertInlineDoc")
 
     def charAdded(self, charNumber):
         """
@@ -70,11 +70,13 @@
         
         line, col = self.editor.getCursorPosition()
         
-        if self.__inComment(line, col) or \
-           self.__inDoubleQuotedString() or \
-           self.__inSingleQuotedString() or \
-           self.__inHereDocument() or \
-           self.__inInlineDocument():
+        if (
+            self.__inComment(line, col) or
+            self.__inDoubleQuotedString() or
+            self.__inSingleQuotedString() or
+            self.__inHereDocument() or
+            self.__inInlineDocument()
+        ):
             return
         
         # open parenthesis

eric ide

mercurial