diff options
author | John Donoghue <devnull@localhost> | 2014-08-01 08:24:56 -0400 |
---|---|---|
committer | John Donoghue <devnull@localhost> | 2014-08-01 08:24:56 -0400 |
commit | d1c47c01e682fe02db9707ddcd5c3bfab919a28e (patch) | |
tree | 9551f2001ce6e0bcb40686032f4421f3d940703b | |
parent | 5f42e1f6adaa9448188a1697a8e9e9c1fd7b9fd8 (diff) | |
download | scintilla-mirror-d1c47c01e682fe02db9707ddcd5c3bfab919a28e.tar.gz |
Support transpose character after {} operator
* lexers/LexMatlab.cxx
(ColouriseMatlabOctaveDoc): add check in default state for '}' to allow transpose.
-rw-r--r-- | lexers/LexMatlab.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lexers/LexMatlab.cxx b/lexers/LexMatlab.cxx index a8ac03cc7..4dfd512c8 100644 --- a/lexers/LexMatlab.cxx +++ b/lexers/LexMatlab.cxx @@ -12,6 +12,9 @@ ** - added ... displayed as a comment ** - removed unused IsAWord functions ** - added some comments + ** + ** Changes by John Donoghue 2014/08/01 + ** - fix allowed transpose ' after {} operator **/ // Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. @@ -218,7 +221,7 @@ static void ColouriseMatlabOctaveDoc( } else if (isalpha(sc.ch)) { sc.SetState(SCE_MATLAB_KEYWORD); } else if (isoperator(static_cast<char>(sc.ch)) || sc.ch == '@' || sc.ch == '\\') { - if (sc.ch == ')' || sc.ch == ']') { + if (sc.ch == ')' || sc.ch == ']' || sc.ch == '}') { transpose = true; } else { transpose = false; |