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 |