Wed, 19 Sep 2012 18:21:04 +0200
Added an additional check to the keywords method of the Lexer class.
QScintilla/Lexers/Lexer.py | file | annotate | diff | comparison | revisions |
--- a/QScintilla/Lexers/Lexer.py Mon Sep 17 19:38:48 2012 +0200 +++ b/QScintilla/Lexers/Lexer.py Wed Sep 19 18:21:04 2012 +0200 @@ -210,7 +210,7 @@ @return string giving the keywords (string) or None """ keywords_ = Preferences.getEditorKeywords(self.language()) - if keywords_: + if keywords_ and len(keywords_) > kwSet: kw = keywords_[kwSet] if kw == "": return None