--- a/QScintilla/Lexers/LexerLua.py Fri Mar 11 08:55:14 2011 +0100 +++ b/QScintilla/Lexers/LexerLua.py Fri Mar 11 16:51:57 2011 +0100 @@ -12,8 +12,9 @@ from .Lexer import Lexer import Preferences + class LexerLua(QsciLexerLua, 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): @@ -51,7 +52,7 @@ @return flag indicating a comment style (boolean) """ - return style in [QsciLexerLua.Comment, + return style in [QsciLexerLua.Comment, QsciLexerLua.LineComment] def isStringStyle(self, style): @@ -60,15 +61,15 @@ @return flag indicating a string style (boolean) """ - return style in [QsciLexerLua.String, - QsciLexerLua.LiteralString, + return style in [QsciLexerLua.String, + QsciLexerLua.LiteralString, QsciLexerLua.UnclosedString] 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 QsciLexerLua.keywords(self, kwSet)