Mercurial > hg > octave-avbm
changeset 16561:78765ae325fd
gui: handle octaverc files with the octave lexer
* file-editor-tab.cc (file_editor_tab::update_lexer): Add octaverc to
the list of file types using lexer_octave_gui.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Tue, 23 Apr 2013 22:36:26 -0400 |
parents | 5fc1ce2947bd |
children | ebec000cbfc5 |
files | libgui/src/m-editor/file-editor-tab.cc |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc +++ b/libgui/src/m-editor/file-editor-tab.cc @@ -213,7 +213,9 @@ QsciLexer *lexer = _edit_area->lexer (); delete lexer; - if (_file_name.endsWith (".m") || _file_name.endsWith (".M")) + if (_file_name.endsWith (".m") + || _file_name.endsWith (".M") + || _file_name.endsWith ("octaverc")) { lexer = new lexer_octave_gui (); }