aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexMatlab.cxx
diff options
context:
space:
mode:
authorJohn Donoghue <john.donoghue@ieee.org>2018-01-02 08:09:54 -0500
committerJohn Donoghue <john.donoghue@ieee.org>2018-01-02 08:09:54 -0500
commit3d815f892d7b4828b0230551b7ec8d78845e8861 (patch)
tree889520456131fa401d9331094400283198353e43 /lexers/LexMatlab.cxx
parent5259ff227943c4543af4b1816957b0103d4fa1ef (diff)
downloadscintilla-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
Diffstat (limited to 'lexers/LexMatlab.cxx')
-rw-r--r--lexers/LexMatlab.cxx1
1 files changed, 1 insertions, 0 deletions
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 ||