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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 19 Sep 2012 18:21:04 +0200
changeset 2048
da2d82f84924
parent 2047
739aa1717df5
child 2050
585f6646bf50

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

eric ide

mercurial