diff options
-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 5b63ce841..19b2d4b17 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -574,6 +574,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> Improve VHDL lexer's handling of character literals and escape characters in strings. </li> <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 || |