Added an additional check to the keywords method of the Lexer class. 5_2_x

Wed, 19 Sep 2012 18:21:04 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 19 Sep 2012 18:21:04 +0200
branch
5_2_x
changeset 2049
966ae2a9069b
parent 2043
77954c09aacc
child 2056
7ae5c3210c91

Added an additional check to the keywords method of the Lexer class.
(grafted from da2d82f849247bd51505a9100de73d24a4ce5fb7)

QScintilla/Lexers/Lexer.py file | annotate | diff | comparison | revisions
--- a/QScintilla/Lexers/Lexer.py	Sat Sep 15 20:57:06 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

eric ide

mercurial