QScintilla/Lexers/LexerPython.py

changeset 945
8cd4d08fa9f6
parent 826
2e3e2055e715
child 948
fe7b94ed01ec
--- a/QScintilla/Lexers/LexerPython.py	Fri Mar 11 08:55:14 2011 +0100
+++ b/QScintilla/Lexers/LexerPython.py	Fri Mar 11 16:51:57 2011 +0100
@@ -14,11 +14,12 @@
 from .Lexer import Lexer
 import Preferences
 
+
 class LexerPython(QsciLexerPython, Lexer):
-    """ 
+    """
     Subclass to implement some additional lexer dependant methods.
     """
-    def __init__(self, variant = "", parent = None):
+    def __init__(self, variant="", parent=None):
         """
         Constructor
         
@@ -86,7 +87,7 @@
                 last += indent_width
             else:
                 # special cases, like pass (unindent) or return (also unindent)
-                m = re.search('(pass\s*(#.*)?$)|(^[^#]return)', 
+                m = re.search('(pass\s*(#.*)?$)|(^[^#]return)',
                               editor.text(pline))
                 if m:
                     last -= indent_width
@@ -113,7 +114,7 @@
         
         @return flag indicating a comment style (boolean)
         """
-        return style in [QsciLexerPython.Comment, 
+        return style in [QsciLexerPython.Comment,
                          QsciLexerPython.CommentBlock]
     
     def isStringStyle(self, style):
@@ -122,10 +123,10 @@
         
         @return flag indicating a string style (boolean)
         """
-        return style in [QsciLexerPython.DoubleQuotedString, 
-                         QsciLexerPython.SingleQuotedString, 
-                         QsciLexerPython.TripleDoubleQuotedString, 
-                         QsciLexerPython.TripleSingleQuotedString, 
+        return style in [QsciLexerPython.DoubleQuotedString,
+                         QsciLexerPython.SingleQuotedString,
+                         QsciLexerPython.TripleDoubleQuotedString,
+                         QsciLexerPython.TripleSingleQuotedString,
                          QsciLexerPython.UnclosedString]
     
     def defaultKeywords(self, kwSet):

eric ide

mercurial