aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2005-07-23 01:11:10 +0000
committernyamatongwe <unknown>2005-07-23 01:11:10 +0000
commit7023a1cebba112c196c5578ca1587acad0795020 (patch)
tree2443d4ee245e90d9a1feee01df962afde4fe6f97 /src
parent693b27d2617d1b288fc60fdfda4fb536754bab70 (diff)
downloadscintilla-mirror-7023a1cebba112c196c5578ca1587acad0795020.tar.gz
Patch from Bruce Doson fixes folding of elseif.
Diffstat (limited to 'src')
-rw-r--r--src/LexAVE.cxx4
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--;
}
}