QScintilla/Lexers/LexerJava.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1131
7781e396c903
diff -r 1b59c4ba121e -r 8cd4d08fa9f6 QScintilla/Lexers/LexerJava.py
--- a/QScintilla/Lexers/LexerJava.py	Fri Mar 11 08:55:14 2011 +0100
+++ b/QScintilla/Lexers/LexerJava.py	Fri Mar 11 16:51:57 2011 +0100
@@ -12,8 +12,9 @@
 from .Lexer import Lexer
 import Preferences
 
+
 class LexerJava(QsciLexerJava, Lexer):
-    """ 
+    """
     Subclass to implement some additional lexer dependant methods.
     """
     def __init__(self, parent=None):
@@ -27,13 +28,13 @@
         
         self.commentString = "//"
         self.streamCommentString = {
-            'start' : '/* ',
-            'end'   : ' */'
+            'start': '/* ',
+            'end': ' */'
         }
         self.boxCommentString = {
-            'start'  : '/* ',
-            'middle' : ' * ',
-            'end'    : ' */'
+            'start': '/* ',
+            'middle': ' * ',
+            'end': ' */'
         }
 
     def initProperties(self):
@@ -57,9 +58,9 @@
         
         @return flag indicating a comment style (boolean)
         """
-        return style in [QsciLexerJava.Comment, 
-                         QsciLexerJava.CommentDoc, 
-                         QsciLexerJava.CommentLine, 
+        return style in [QsciLexerJava.Comment,
+                         QsciLexerJava.CommentDoc,
+                         QsciLexerJava.CommentLine,
                          QsciLexerJava.CommentLineDoc]
     
     def isStringStyle(self, style):
@@ -68,16 +69,16 @@
         
         @return flag indicating a string style (boolean)
         """
-        return style in [QsciLexerJava.DoubleQuotedString, 
-                         QsciLexerJava.SingleQuotedString, 
-                         QsciLexerJava.UnclosedString, 
+        return style in [QsciLexerJava.DoubleQuotedString,
+                         QsciLexerJava.SingleQuotedString,
+                         QsciLexerJava.UnclosedString,
                          QsciLexerJava.VerbatimString]
     
     def defaultKeywords(self, kwSet):
         """
         Public method to get the default keywords.
         
-        @param kwSet number of the keyword set (integer) 
+        @param kwSet number of the keyword set (integer)
         @return string giving the keywords (string) or None
         """
         return QsciLexerJava.keywords(self, kwSet)

eric ide

mercurial