diff -r 1b59c4ba121e -r 8cd4d08fa9f6 QScintilla/Lexers/LexerPascal.py --- a/QScintilla/Lexers/LexerPascal.py Fri Mar 11 08:55:14 2011 +0100 +++ b/QScintilla/Lexers/LexerPascal.py Fri Mar 11 16:51:57 2011 +0100 @@ -12,11 +12,12 @@ from .Lexer import Lexer import Preferences + class LexerPascal(QsciLexerPascal, Lexer): - """ + """ Subclass to implement some additional lexer dependant methods. """ - def __init__(self, parent = None): + def __init__(self, parent=None): """ Constructor @@ -27,8 +28,8 @@ self.commentString = "//" self.streamCommentString = { - 'start' : '{ ', - 'end' : ' }' + 'start': '{ ', + 'end': ' }' } def initProperties(self): @@ -58,12 +59,12 @@ @return flag indicating a comment style (boolean) """ try: - return style in [QsciLexerPascal.Comment, - QsciLexerPascal.CommentDoc, + return style in [QsciLexerPascal.Comment, + QsciLexerPascal.CommentDoc, QsciLexerPascal.CommentLine] except AttributeError: - return style in [QsciLexerPascal.Comment, - QsciLexerPascal.CommentParenthesis, + return style in [QsciLexerPascal.Comment, + QsciLexerPascal.CommentParenthesis, QsciLexerPascal.CommentLine] def isStringStyle(self, style): @@ -78,7 +79,7 @@ """ 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 QsciLexerPascal.keywords(self, kwSet)