diff options
| author | nyamatongwe <unknown> | 2005-07-23 01:11:10 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2005-07-23 01:11:10 +0000 | 
| commit | 7023a1cebba112c196c5578ca1587acad0795020 (patch) | |
| tree | 2443d4ee245e90d9a1feee01df962afde4fe6f97 | |
| parent | 693b27d2617d1b288fc60fdfda4fb536754bab70 (diff) | |
| download | scintilla-mirror-7023a1cebba112c196c5578ca1587acad0795020.tar.gz | |
Patch from Bruce Doson fixes folding of elseif.
| -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--;  				}  			}  | 
