diff -r e35d2cda9a74 -r b3d966393ba9 Preferences/ConfigurationPages/EditorHighlightersPage.py --- a/Preferences/ConfigurationPages/EditorHighlightersPage.py Sat Sep 04 19:51:19 2010 +0200 +++ b/Preferences/ConfigurationPages/EditorHighlightersPage.py Sat Sep 04 19:51:48 2010 +0200 @@ -61,7 +61,7 @@ Public slot to save the Editor Highlighter Associations configuration. """ lexerAssocs = {} - for index in range(\ + for index in range( self.editorLexerList.topLevelItemCount()): itm = self.editorLexerList.topLevelItem(index) lexerAssocs[itm.text(0)] = itm.text(1) @@ -83,7 +83,7 @@ else: lexer = "Pygments|{0}".format(pygmentsLexer) if ext and lexer: - itmList = self.editorLexerList.findItems(\ + itmList = self.editorLexerList.findItems( ext, Qt.MatchFlags(Qt.MatchExactly), 0) if itmList: index = self.editorLexerList.indexOfTopLevelItem(itmList[0]) @@ -163,4 +163,4 @@ @param dlg reference to the configuration dialog """ page = EditorHighlightersPage(dlg.getLexers()) - return page + return page \ No newline at end of file