aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexFlagship.cxx
diff options
context:
space:
mode:
authorJoe Mueller <devnull@localhost>2015-07-30 14:35:17 +1000
committerJoe Mueller <devnull@localhost>2015-07-30 14:35:17 +1000
commit96229bb5f01e86efe382523e1ee79ff23bdcc8e0 (patch)
tree5aa3c8becad92a397b02445001383e188070f287 /lexers/LexFlagship.cxx
parent7604a6b2a98fc2250408368eb51f8f6827d888c8 (diff)
downloadscintilla-mirror-96229bb5f01e86efe382523e1ee79ff23bdcc8e0.tar.gz
Use Sci_Position / Sci_PositionU for variables in lexers that represent
positions and line numbers and may be widened to 64-bits in a future release.
Diffstat (limited to 'lexers/LexFlagship.cxx')
-rw-r--r--lexers/LexFlagship.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/lexers/LexFlagship.cxx b/lexers/LexFlagship.cxx
index b355423e5..6f6f4c0c7 100644
--- a/lexers/LexFlagship.cxx
+++ b/lexers/LexFlagship.cxx
@@ -271,9 +271,9 @@ static void ColouriseFlagShipDoc(Sci_PositionU startPos, Sci_Position length, in
}
}
} else if (bEnableCode && sc.ch == '{') {
- int p = 0;
+ Sci_Position p = 0;
int chSeek;
- unsigned int endPos(startPos + length);
+ Sci_PositionU endPos(startPos + length);
do { // Skip whitespace
chSeek = sc.GetRelative(++p);
} while (IsASpaceOrTab(chSeek) && (sc.currentPos + p < endPos));
@@ -306,10 +306,10 @@ static void FoldFlagShipDoc(Sci_PositionU startPos, Sci_Position length, int,
WordList *[], Accessor &styler)
{
- int endPos = startPos + length;
+ Sci_Position endPos = startPos + length;
// Backtrack to previous line in case need to fix its fold status
- int lineCurrent = styler.GetLine(startPos);
+ Sci_Position lineCurrent = styler.GetLine(startPos);
if (startPos > 0 && lineCurrent > 0) {
lineCurrent--;
startPos = styler.LineStart(lineCurrent);
@@ -317,7 +317,7 @@ static void FoldFlagShipDoc(Sci_PositionU startPos, Sci_Position length, int,
int spaceFlags = 0;
int indentCurrent = styler.IndentAmount(lineCurrent, &spaceFlags);
char chNext = styler[startPos];
- for (int i = startPos; i < endPos; i++) {
+ for (Sci_Position i = startPos; i < endPos; i++) {
char ch = chNext;
chNext = styler.SafeGetCharAt(i + 1);