QScintilla/Lexers/__init__.py

branch
5_3_x
changeset 2711
463ca742001d
parent 2302
f29e9405c851
child 2763
e4794166ad70
equal deleted inserted replaced
2706:a6a75232b636 2711:463ca742001d
404 QApplication.translate('Lexers', 404 QApplication.translate('Lexers',
405 'Octave Files (*.m *.m.octave)'), 405 'Octave Files (*.m *.m.octave)'),
406 ]) 406 ])
407 407
408 for name in LexerRegistry: 408 for name in LexerRegistry:
409 openFileFiltersList.append(LexerRegistry[name][3]) 409 openFileFiltersList.extend(LexerRegistry[name][3])
410 410
411 if withAdditional: 411 if withAdditional:
412 openFileFiltersList.extend(Preferences.getEditor("AdditionalOpenFilters")) 412 openFileFiltersList.extend(Preferences.getEditor("AdditionalOpenFilters"))
413 413
414 openFileFiltersList.sort() 414 openFileFiltersList.sort()
541 QApplication.translate('Lexers', 541 QApplication.translate('Lexers',
542 'Octave Files (*.m.octave)'), 542 'Octave Files (*.m.octave)'),
543 ]) 543 ])
544 544
545 for name in LexerRegistry: 545 for name in LexerRegistry:
546 saveFileFiltersList.append(LexerRegistry[name][4]) 546 saveFileFiltersList.extend(LexerRegistry[name][4])
547 547
548 if withAdditional: 548 if withAdditional:
549 saveFileFiltersList.extend(Preferences.getEditor("AdditionalSaveFilters")) 549 saveFileFiltersList.extend(Preferences.getEditor("AdditionalSaveFilters"))
550 550
551 saveFileFiltersList.sort() 551 saveFileFiltersList.sort()

eric ide

mercurial