aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexPowerShell.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'lexers/LexPowerShell.cxx')
-rw-r--r--lexers/LexPowerShell.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/lexers/LexPowerShell.cxx b/lexers/LexPowerShell.cxx
index 7e8c8f1af..00d79db83 100644
--- a/lexers/LexPowerShell.cxx
+++ b/lexers/LexPowerShell.cxx
@@ -163,9 +163,9 @@ static void FoldPowerShellDoc(Sci_PositionU startPos, Sci_Position length, int i
bool foldComment = styler.GetPropertyInt("fold.comment") != 0;
bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0;
bool foldAtElse = styler.GetPropertyInt("fold.at.else", 0) != 0;
- unsigned int endPos = startPos + length;
+ Sci_PositionU endPos = startPos + length;
int visibleChars = 0;
- int lineCurrent = styler.GetLine(startPos);
+ Sci_Position lineCurrent = styler.GetLine(startPos);
int levelCurrent = SC_FOLDLEVELBASE;
if (lineCurrent > 0)
levelCurrent = styler.LevelAt(lineCurrent-1) >> 16;
@@ -174,7 +174,7 @@ static void FoldPowerShellDoc(Sci_PositionU startPos, Sci_Position length, int i
char chNext = styler[startPos];
int styleNext = styler.StyleAt(startPos);
int style = initStyle;
- for (unsigned int i = startPos; i < endPos; i++) {
+ for (Sci_PositionU i = startPos; i < endPos; i++) {
char ch = chNext;
chNext = styler.SafeGetCharAt(i + 1);
int stylePrev = style;
@@ -200,7 +200,7 @@ static void FoldPowerShellDoc(Sci_PositionU startPos, Sci_Position length, int i
}
} else if (foldComment && style == SCE_POWERSHELL_COMMENT) {
if (ch == '#') {
- unsigned int j = i + 1;
+ Sci_PositionU j = i + 1;
while ((j < endPos) && IsASpaceOrTab(styler.SafeGetCharAt(j))) {
j++;
}