diff options
| author | John Donoghue <unknown> | 2014-08-01 08:24:56 -0400 | 
|---|---|---|
| committer | John Donoghue <unknown> | 2014-08-01 08:24:56 -0400 | 
| commit | 228afde94a4cad711d808b704ae339249e3ed297 (patch) | |
| tree | 1a28b7b8ccc44fa235b11a72fda87a9f2a7948d2 /lexers/LexMatlab.cxx | |
| parent | fd9e2e76f19f158c57dd5b37ad0c2023fdeb157c (diff) | |
| download | scintilla-mirror-228afde94a4cad711d808b704ae339249e3ed297.tar.gz | |
Support transpose character after {} operator
* lexers/LexMatlab.cxx
  (ColouriseMatlabOctaveDoc): add check in default state for '}' to allow transpose.
Diffstat (limited to 'lexers/LexMatlab.cxx')
| -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;  | 
