Preferences/PreferencesLexer.py

changeset 3025
67064c71df21
parent 2964
84b65fb9e780
child 3058
0a02c433f52d
child 3160
209a07d7e401
equal deleted inserted replaced
3024:17c01303a239 3025:67064c71df21
20 """ 20 """
21 def __init__(self): 21 def __init__(self):
22 """ 22 """
23 Constructor 23 Constructor
24 """ 24 """
25 self._errorMessage = \ 25 self._errorMessage = QApplication.translate(
26 QApplication.translate("PreferencesLexerError", 26 "PreferencesLexerError",
27 "Unspecific PreferencesLexer error.") 27 "Unspecific PreferencesLexer error.")
28 28
29 def __repr__(self): 29 def __repr__(self):
30 """ 30 """
31 Private method returning a representation of the exception. 31 Private method returning a representation of the exception.
32 32
52 Constructor 52 Constructor
53 53
54 @param language lexer language (string) 54 @param language lexer language (string)
55 """ 55 """
56 PreferencesLexerError.__init__(self) 56 PreferencesLexerError.__init__(self)
57 self._errorMessage = \ 57 self._errorMessage = QApplication.translate(
58 QApplication.translate("PreferencesLexerError", 58 "PreferencesLexerError",
59 'Unsupported Lexer Language: {0}').format(language) 59 'Unsupported Lexer Language: {0}').format(language)
60 60
61 61
62 class PreferencesLexer(QsciLexer): 62 class PreferencesLexer(QsciLexer):
63 """ 63 """
64 Subclass of QsciLexer to implement preferences specific lexer methods. 64 Subclass of QsciLexer to implement preferences specific lexer methods.

eric ide

mercurial