diff -r 1b59c4ba121e -r 8cd4d08fa9f6 QScintilla/Lexers/LexerSQL.py --- a/QScintilla/Lexers/LexerSQL.py Fri Mar 11 08:55:14 2011 +0100 +++ b/QScintilla/Lexers/LexerSQL.py Fri Mar 11 16:51:57 2011 +0100 @@ -12,8 +12,9 @@ from .Lexer import Lexer import Preferences + class LexerSQL(QsciLexerSQL, Lexer): - """ + """ Subclass to implement some additional lexer dependant methods. """ def __init__(self, parent=None): @@ -41,9 +42,9 @@ @return flag indicating a comment style (boolean) """ - return style in [QsciLexerSQL.Comment, - QsciLexerSQL.CommentDoc, - QsciLexerSQL.CommentLine, + return style in [QsciLexerSQL.Comment, + QsciLexerSQL.CommentDoc, + QsciLexerSQL.CommentLine, QsciLexerSQL.CommentLineHash] def isStringStyle(self, style): @@ -52,14 +53,14 @@ @return flag indicating a string style (boolean) """ - return style in [QsciLexerSQL.DoubleQuotedString, + return style in [QsciLexerSQL.DoubleQuotedString, QsciLexerSQL.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 QsciLexerSQL.keywords(self, kwSet)