Mercurial > octave-nkf
diff libgui/src/m-editor/lexer-octave-gui.cc @ 16607:1eeeb2599870
fix style of matching braces in octave lexer
* lexer-octave-gui.cc/.h (brace::Style): new function returning brace style
* lexer-octave-gui.cc(defaultFont): fix shadow warnings during compilation
author | Torsten <ttl@justmail.de> |
---|---|
date | Fri, 03 May 2013 20:59:46 +0200 |
parents | ce65326ecd6c |
children |
line wrap: on
line diff
--- a/libgui/src/m-editor/lexer-octave-gui.cc Fri May 03 02:57:43 2013 -0400 +++ b/libgui/src/m-editor/lexer-octave-gui.cc Fri May 03 20:59:46 2013 +0200 @@ -145,20 +145,29 @@ QFont lexer_octave_gui::defaultFont (int style) const { - QFont font; + QFont f; switch (style) { case Keyword: - font = QsciLexer::defaultFont (style); - font.setBold(true); + f = QsciLexer::defaultFont (style); + f.setBold(true); break; default: - font = QsciLexer::defaultFont (style); + f = QsciLexer::defaultFont (style); } - return font; + return f; +} + +// ----------------------------------------------------- +// The style used for braces +// ----------------------------------------------------- +int +lexer_octave_gui::braceStyle() const +{ + return Operator; } // -----------------------------------------------------