diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/LexAVE.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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--; } } |