eric6/QScintilla/Editor.py

changeset 7749
285855999b4e
parent 7746
12d5e1e6abd1
child 7759
51aa6c6b66f7
equal deleted inserted replaced
7748:23e98236a4c4 7749:285855999b4e
1739 else: 1739 else:
1740 language = self.filetype 1740 language = self.filetype
1741 1741
1742 if language.startswith("Pygments|"): 1742 if language.startswith("Pygments|"):
1743 pyname = language 1743 pyname = language
1744 self.filetype = language.split("|")[-1]
1744 language = "" 1745 language = ""
1745 1746
1746 from . import Lexers 1747 from . import Lexers
1747 self.lexer_ = Lexers.getLexer(language, self, pyname=pyname) 1748 self.lexer_ = Lexers.getLexer(language, self, pyname=pyname)
1748 if self.lexer_ is None: 1749 if self.lexer_ is None:

eric ide

mercurial