QScintilla/Lexers/Lexer.py

changeset 130
fcce4cc20d95
parent 97
c4086afea02b
child 167
7508e44f4853
equal deleted inserted replaced
129:3bc474738bf3 130:fcce4cc20d95
2 2
3 # Copyright (c) 2003 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> 3 # Copyright (c) 2003 - 2010 Detlev Offenbach <detlev@die-offenbachs.de>
4 # 4 #
5 5
6 """ 6 """
7 Module implementing the lexer base class. 7 Module implementing the lexer mixin class.
8 """ 8 """
9
10 import Preferences
9 11
10 class Lexer(object): 12 class Lexer(object):
11 """ 13 """
12 Class to implement the lexer mixin class. 14 Class to implement the lexer mixin class.
13 """ 15 """
196 Public method to check, if a style is a string style. 198 Public method to check, if a style is a string style.
197 199
198 @return flag indicating a string style (boolean) 200 @return flag indicating a string style (boolean)
199 """ 201 """
200 return True 202 return True
203
204 def keywords(self, kwSet):
205 """
206 Public method to get the keywords.
207
208 @param kwSet number of the keyword set (integer)
209 """
210 keywords_ = Preferences.getEditorKeywords(self.language())
211 if keywords_:
212 kw = keywords_[kwSet]
213 if kw == "":
214 return None
215 else:
216 return kw
217 else:
218 return self.defaultKeywords(kwSet)

eric ide

mercurial