aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2006-10-16 23:41:44 +0000
committernyamatongwe <unknown>2006-10-16 23:41:44 +0000
commite4196942f7cf7e2167be5f828be0dd8bab46bc6b (patch)
tree8309a9208fa516b5f6e23ac45795cec7333811aa /src
parent138fa972ea9e5a5d56a23586da3499205873eee5 (diff)
downloadscintilla-mirror-e4196942f7cf7e2167be5f828be0dd8bab46bc6b.tar.gz
Fold on !if.
Diffstat (limited to 'src')
-rw-r--r--src/LexNsis.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LexNsis.cxx b/src/LexNsis.cxx
index 6a7274ef5..ddbc8a83d 100644
--- a/src/LexNsis.cxx
+++ b/src/LexNsis.cxx
@@ -120,7 +120,7 @@ static int calculateFoldNsis(unsigned int start, unsigned int end, int foldlevel
return foldlevel;
}
else
- {
+ {
if( style != SCE_NSIS_FUNCTIONDEF && style != SCE_NSIS_SECTIONDEF &&
style != SCE_NSIS_SUBSECTIONDEF && style != SCE_NSIS_SECTIONGROUP &&
style != SCE_NSIS_PAGEEX )
@@ -141,7 +141,7 @@ static int calculateFoldNsis(unsigned int start, unsigned int end, int foldlevel
if( s[0] == '!' )
{
- if( NsisCmp(s, "!ifndef", bIgnoreCase) == 0 || NsisCmp(s, "!ifdef", bIgnoreCase ) == 0 || NsisCmp(s, "!macro", bIgnoreCase ) == 0 )
+ if( NsisCmp(s, "!ifndef", bIgnoreCase) == 0 || NsisCmp(s, "!ifdef", bIgnoreCase ) == 0 || NsisCmp(s, "!if", bIgnoreCase ) == 0 || NsisCmp(s, "!macro", bIgnoreCase ) == 0 )
newFoldlevel++;
else if( NsisCmp(s, "!endif", bIgnoreCase) == 0 || NsisCmp(s, "!macroend", bIgnoreCase ) == 0 )
newFoldlevel--;
@@ -155,7 +155,7 @@ static int calculateFoldNsis(unsigned int start, unsigned int end, int foldlevel
else if( NsisCmp(s, "SectionGroupEnd", bIgnoreCase ) == 0 || NsisCmp(s, "SubSectionEnd", bIgnoreCase ) == 0 || NsisCmp(s, "FunctionEnd", bIgnoreCase) == 0 || NsisCmp(s, "SectionEnd", bIgnoreCase ) == 0 || NsisCmp(s, "PageExEnd", bIgnoreCase ) == 0 )
newFoldlevel--;
}
-
+
return newFoldlevel;
}