From 7023a1cebba112c196c5578ca1587acad0795020 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 23 Jul 2005 01:11:10 +0000 Subject: Patch from Bruce Doson fixes folding of elseif. --- src/LexAVE.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/LexAVE.cxx b/src/LexAVE.cxx index 96f43b39d..e30ee7dc9 100644 --- a/src/LexAVE.cxx +++ b/src/LexAVE.cxx @@ -182,7 +182,9 @@ static void FoldAveDoc(unsigned int startPos, int length, int /* initStyle */, W if ((strcmp(s, "then") == 0) || (strcmp(s, "for") == 0) || (strcmp(s, "while") == 0)) { levelCurrent++; } - if ((strcmp(s, "end") == 0)) { + if ((strcmp(s, "end") == 0) || (strcmp(s, "elseif") == 0)) { + // Normally "elseif" and "then" will be on the same line and will cancel + // each other out. // As implemented, this does not support fold.at.else. levelCurrent--; } } -- cgit v1.2.3