Mercurial > octave
changeset 24222:7d1561c9ee48
prevent ignoring octave lexer when determining comment string (bug #52364)
* octave_qscintilla (comment_string): fix #if defined blocks for preventing
the octave lexer from being ignored
author | Torsten <mttl@mailbox.org> |
---|---|
date | Thu, 09 Nov 2017 18:52:26 +0100 |
parents | ac080874d3b9 |
children | 629858e122f1 |
files | libgui/src/m-editor/octave-qscintilla.cc |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/m-editor/octave-qscintilla.cc Thu Nov 09 10:05:25 2017 +0100 +++ b/libgui/src/m-editor/octave-qscintilla.cc Thu Nov 09 18:52:26 2017 +0100 @@ -383,10 +383,11 @@ switch (lexer) { -#if defined (HAVE_LEXER_MATLAB) - case SCLEX_MATLAB: +#if defined (HAVE_LEXER_OCTAVE) || defined (HAVE_LEXER_MATLAB) #if defined (HAVE_LEXER_OCTAVE) case SCLEX_OCTAVE: +#else + case SCLEX_MATLAB: #endif { QSettings *settings = resource_manager::get_settings ();