QScintilla/Lexers/Lexer.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1509
c0b5e693b0eb
--- a/QScintilla/Lexers/Lexer.py	Fri Mar 11 08:55:14 2011 +0100
+++ b/QScintilla/Lexers/Lexer.py	Fri Mar 11 16:51:57 2011 +0100
@@ -9,8 +9,9 @@
 
 import Preferences
 
+
 class Lexer(object):
-    """ 
+    """
     Class to implement the lexer mixin class.
     """
     def __init__(self):
@@ -19,13 +20,13 @@
         """
         self.commentString = ''
         self.streamCommentString = {
-            'start' : '',
-            'end' : ''
+            'start': '',
+            'end': ''
         }
         self.boxCommentString = {
-            'start' : '',
-            'middle' : '',
-            'end' : ''
+            'start': '',
+            'middle': '',
+            'end': ''
         }
         
         # last indented line wrapper
@@ -159,8 +160,8 @@
         
         editor.beginUndoAction()
         # iterate over the lines
-        for line in range(lineFrom, endLine+1):
-            editor.setIndentation(line, 
+        for line in range(lineFrom, endLine + 1):
+            editor.setIndentation(line,
                 editor.indentation(line) + indentDifference)
         editor.endUndoAction()
         

eric ide

mercurial