aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2005-07-23 01:11:10 +0000
committernyamatongwe <devnull@localhost>2005-07-23 01:11:10 +0000
commitafcf41ea0fbc4b0b28880ccf9d15a06238ad17b6 (patch)
tree2443d4ee245e90d9a1feee01df962afde4fe6f97 /src
parente297178aa3ce5f41309be9dc25c9b15d8656d007 (diff)
downloadscintilla-mirror-afcf41ea0fbc4b0b28880ccf9d15a06238ad17b6.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--;
}
}