eric7/Preferences/ConfigurationPages/EditorHighlightersPage.py

branch
eric7
changeset 8324
83084f088655
parent 8318
962bce857696
child 8507
2a22d0880d21
equal deleted inserted replaced
8323:3bb9b7d997db 8324:83084f088655
88 lexer = pygmentsLexer 88 lexer = pygmentsLexer
89 else: 89 else:
90 lexer = "Pygments|{0}".format(pygmentsLexer) 90 lexer = "Pygments|{0}".format(pygmentsLexer)
91 if ext and lexer: 91 if ext and lexer:
92 itmList = self.editorLexerList.findItems( 92 itmList = self.editorLexerList.findItems(
93 ext, Qt.MatchFlags(Qt.MatchFlag.MatchExactly), 0) 93 ext, Qt.MatchFlag.MatchExactly, 0)
94 if itmList: 94 if itmList:
95 index = self.editorLexerList.indexOfTopLevelItem(itmList[0]) 95 index = self.editorLexerList.indexOfTopLevelItem(itmList[0])
96 itm = self.editorLexerList.takeTopLevelItem(index) 96 itm = self.editorLexerList.takeTopLevelItem(index)
97 # __IGNORE_WARNING__ 97 # __IGNORE_WARNING__
98 del itm 98 del itm

eric ide

mercurial