--- a/QScintilla/Lexers/LexerPerl.py Fri Mar 11 08:55:14 2011 +0100 +++ b/QScintilla/Lexers/LexerPerl.py Fri Mar 11 16:51:57 2011 +0100 @@ -12,8 +12,9 @@ from .Lexer import Lexer import Preferences + class LexerPerl(QsciLexerPerl, Lexer): - """ + """ Subclass to implement some additional lexer dependant methods. """ def __init__(self, parent=None): @@ -61,21 +62,21 @@ @return flag indicating a string style (boolean) """ - return style in [QsciLexerPerl.DoubleQuotedHereDocument, - QsciLexerPerl.DoubleQuotedString, - QsciLexerPerl.QuotedStringQ, - QsciLexerPerl.QuotedStringQQ, - QsciLexerPerl.QuotedStringQR, - QsciLexerPerl.QuotedStringQW, - QsciLexerPerl.QuotedStringQX, - QsciLexerPerl.SingleQuotedHereDocument, + return style in [QsciLexerPerl.DoubleQuotedHereDocument, + QsciLexerPerl.DoubleQuotedString, + QsciLexerPerl.QuotedStringQ, + QsciLexerPerl.QuotedStringQQ, + QsciLexerPerl.QuotedStringQR, + QsciLexerPerl.QuotedStringQW, + QsciLexerPerl.QuotedStringQX, + QsciLexerPerl.SingleQuotedHereDocument, QsciLexerPerl.SingleQuotedString] 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 QsciLexerPerl.keywords(self, kwSet)