Preferences/ConfigurationPages/EditorKeywordsPage.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3025
67064c71df21
child 3145
a9de05d4a22f
equal deleted inserted replaced
3057:10516539f238 3058:0a02c433f52d
34 from QScintilla.Lexers.LexerContainer import LexerContainer 34 from QScintilla.Lexers.LexerContainer import LexerContainer
35 35
36 self.__keywords = { 36 self.__keywords = {
37 "": ["", "", "", "", "", "", "", "", "", ""] 37 "": ["", "", "", "", "", "", "", "", "", ""]
38 } 38 }
39 languages = sorted([''] + \ 39 languages = sorted(
40 list(QScintilla.Lexers.getSupportedLanguages().keys())) 40 [''] + list(QScintilla.Lexers.getSupportedLanguages().keys()))
41 for lang in languages: 41 for lang in languages:
42 if lang: 42 if lang:
43 lex = QScintilla.Lexers.getLexer(lang) 43 lex = QScintilla.Lexers.getLexer(lang)
44 if isinstance(lex, LexerContainer): 44 if isinstance(lex, LexerContainer):
45 continue 45 continue

eric ide

mercurial