aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexPerl.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2005-06-02 00:25:55 +0000
committernyamatongwe <devnull@localhost>2005-06-02 00:25:55 +0000
commitf9cbabf73df359b77fde7f1851f9429324a0289e (patch)
treed1b29bd64b1662f1c55b1b27e9af325b7c763e02 /src/LexPerl.cxx
parent141d4486369c77396a0e87b8425e43f4c9439ce2 (diff)
downloadscintilla-mirror-f9cbabf73df359b77fde7f1851f9429324a0289e.tar.gz
Fixed indentation.
Diffstat (limited to 'src/LexPerl.cxx')
-rw-r--r--src/LexPerl.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/LexPerl.cxx b/src/LexPerl.cxx
index 2a3d4318d..ed680e0ce 100644
--- a/src/LexPerl.cxx
+++ b/src/LexPerl.cxx
@@ -938,7 +938,7 @@ static void FoldPerlDoc(unsigned int startPos, int length, int, WordList *[],
int styleNext = styler.StyleAt(startPos);
// Used at end of line to determine if the line was a package definition
bool isPackageLine = false;
- bool isPodHeading = false;
+ bool isPodHeading = false;
for (unsigned int i = startPos; i < endPos; i++) {
char ch = chNext;
chNext = styler.SafeGetCharAt(i + 1);
@@ -971,8 +971,8 @@ static void FoldPerlDoc(unsigned int startPos, int length, int, WordList *[],
levelCurrent++;
else if (styler.Match(i, "=cut"))
levelCurrent--;
- else if (styler.Match(i, "=head"))
- isPodHeading = true;
+ else if (styler.Match(i, "=head"))
+ isPodHeading = true;
}
}
// Custom package folding
@@ -991,12 +991,12 @@ static void FoldPerlDoc(unsigned int startPos, int length, int, WordList *[],
if (lev != styler.LevelAt(lineCurrent)) {
styler.SetLevel(lineCurrent, lev);
}
- if (isPodHeading) {
- lev = styler.LevelAt(lineCurrent) - 1;
- lev |= SC_FOLDLEVELHEADERFLAG;
- styler.SetLevel(lineCurrent, lev);
- isPodHeading = false;
- }
+ if (isPodHeading) {
+ lev = styler.LevelAt(lineCurrent) - 1;
+ lev |= SC_FOLDLEVELHEADERFLAG;
+ styler.SetLevel(lineCurrent, lev);
+ isPodHeading = false;
+ }
// Check if line was a package declaration
// because packages need "special" treatment
if (isPackageLine) {