aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexBullant.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'lexers/LexBullant.cxx')
-rw-r--r--lexers/LexBullant.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/lexers/LexBullant.cxx b/lexers/LexBullant.cxx
index 8a3dbb46d..404188769 100644
--- a/lexers/LexBullant.cxx
+++ b/lexers/LexBullant.cxx
@@ -23,10 +23,10 @@
using namespace Scintilla;
#endif
-static int classifyWordBullant(unsigned int start, unsigned int end, WordList &keywords, Accessor &styler) {
+static int classifyWordBullant(Sci_PositionU start, Sci_PositionU end, WordList &keywords, Accessor &styler) {
char s[100];
s[0] = '\0';
- for (unsigned int i = 0; i < end - start + 1 && i < 30; i++) {
+ for (Sci_PositionU i = 0; i < end - start + 1 && i < 30; i++) {
s[i] = static_cast<char>(tolower(styler[start + i]));
s[i + 1] = '\0';
}
@@ -65,7 +65,7 @@ static void ColouriseBullantDoc(Sci_PositionU startPos, Sci_Position length, int
styler.StartAt(startPos);
bool fold = styler.GetPropertyInt("fold") != 0;
- int lineCurrent = styler.GetLine(startPos);
+ Sci_Position lineCurrent = styler.GetLine(startPos);
int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK;
int levelCurrent = levelPrev;
@@ -74,11 +74,11 @@ static void ColouriseBullantDoc(Sci_PositionU startPos, Sci_Position length, int
state = SCE_C_DEFAULT;
char chPrev = ' ';
char chNext = styler[startPos];
- unsigned int lengthDoc = startPos + length;
+ Sci_PositionU lengthDoc = startPos + length;
int visibleChars = 0;
styler.StartSegment(startPos);
int endFoundThisLine = 0;
- for (unsigned int i = startPos; i < lengthDoc; i++) {
+ for (Sci_PositionU i = startPos; i < lengthDoc; i++) {
char ch = chNext;
chNext = styler.SafeGetCharAt(i + 1);