diff options
author | John Donoghue <john.donoghue@ieee.org> | 2018-01-02 08:09:54 -0500 |
---|---|---|
committer | John Donoghue <john.donoghue@ieee.org> | 2018-01-02 08:09:54 -0500 |
commit | 3d815f892d7b4828b0230551b7ec8d78845e8861 (patch) | |
tree | 889520456131fa401d9331094400283198353e43 | |
parent | 5259ff227943c4543af4b1816957b0103d4fa1ef (diff) | |
download | scintilla-mirror-3d815f892d7b4828b0230551b7ec8d78845e8861.tar.gz |
[Bug #1985] Add 'while' keyword to Matlab lexer keywords that start a fold block
* lexers/LexMatlab.cxx
(CheckKeywordFoldPoint): add check for while keyword
-rw-r--r-- | doc/ScintillaHistory.html | 4 | ||||
-rw-r--r-- | lexers/LexMatlab.cxx | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 2b73f9e50..c7c74204c 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -559,6 +559,10 @@ Django tag inside of a {# #} Django comment does not break highlighting of rest of file </li> <li> + The Matlab folder now treats "while" as a fold start. + <a href="http://sourceforge.net/p/scintilla/bugs/1985/">Bug #1985</a>. + </li> + <li> Fix failure on Cocoa with animated find indicator in large files with macOS 10.13 by disabling animation on 10.13. </li> diff --git a/lexers/LexMatlab.cxx b/lexers/LexMatlab.cxx index 6063623ea..a36a99502 100644 --- a/lexers/LexMatlab.cxx +++ b/lexers/LexMatlab.cxx @@ -64,6 +64,7 @@ static int CheckKeywordFoldPoint(char *str) { if (strcmp ("if", str) == 0 || strcmp ("for", str) == 0 || strcmp ("switch", str) == 0 || + strcmp ("while", str) == 0 || strcmp ("try", str) == 0 || strcmp ("do", str) == 0 || strcmp ("parfor", str) == 0 || |