From 3d815f892d7b4828b0230551b7ec8d78845e8861 Mon Sep 17 00:00:00 2001 From: John Donoghue Date: Tue, 2 Jan 2018 08:09:54 -0500 Subject: [Bug #1985] Add 'while' keyword to Matlab lexer keywords that start a fold block * lexers/LexMatlab.cxx (CheckKeywordFoldPoint): add check for while keyword --- lexers/LexMatlab.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'lexers') 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 || -- cgit v1.2.3