From d1c47c01e682fe02db9707ddcd5c3bfab919a28e Mon Sep 17 00:00:00 2001 From: John Donoghue Date: Fri, 1 Aug 2014 08:24:56 -0400 Subject: Support transpose character after {} operator * lexers/LexMatlab.cxx (ColouriseMatlabOctaveDoc): add check in default state for '}' to allow transpose. --- lexers/LexMatlab.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 // 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(sc.ch)) || sc.ch == '@' || sc.ch == '\\') { - if (sc.ch == ')' || sc.ch == ']') { + if (sc.ch == ')' || sc.ch == ']' || sc.ch == '}') { transpose = true; } else { transpose = false; -- cgit v1.2.3