--- a/QScintilla/Lexers/LexerCSS.py Fri Mar 11 08:55:14 2011 +0100 +++ b/QScintilla/Lexers/LexerCSS.py Fri Mar 11 16:51:57 2011 +0100 @@ -12,8 +12,9 @@ from .Lexer import Lexer import Preferences + class LexerCSS(QsciLexerCSS, Lexer): - """ + """ Subclass to implement some additional lexer dependant methods. """ def __init__(self, parent=None): @@ -27,8 +28,8 @@ self.commentString = "#" self.streamCommentString = { - 'start' : '/* ', - 'end' : ' */' + 'start': '/* ', + 'end': ' */' } def initProperties(self): @@ -52,14 +53,14 @@ @return flag indicating a string style (boolean) """ - return style in [QsciLexerCSS.DoubleQuotedString, + return style in [QsciLexerCSS.DoubleQuotedString, QsciLexerCSS.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 QsciLexerCSS.keywords(self, kwSet)