summaryrefslogtreecommitdiffstats
path: root/scintilla/lexers/LexSML.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'scintilla/lexers/LexSML.cxx')
-rw-r--r--scintilla/lexers/LexSML.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/scintilla/lexers/LexSML.cxx b/scintilla/lexers/LexSML.cxx
index 013a170..e083037 100644
--- a/scintilla/lexers/LexSML.cxx
+++ b/scintilla/lexers/LexSML.cxx
@@ -34,7 +34,7 @@ using namespace Scintilla;
#endif
void ColouriseSMLDoc(
- unsigned int startPos, int length,
+ Sci_PositionU startPos, Sci_Position length,
int initStyle,
WordList *keywordlists[],
Accessor &styler)
@@ -46,7 +46,8 @@ void ColouriseSMLDoc(
if (sc.state >= SCE_SML_COMMENT)
nesting = (sc.state & 0x0f) - SCE_SML_COMMENT;
- int chBase = 0, chToken = 0, chLit = 0;
+ Sci_PositionU chToken = 0;
+ int chBase = 0, chLit = 0;
WordList& keywords = *keywordlists[0];
WordList& keywords2 = *keywordlists[1];
WordList& keywords3 = *keywordlists[2];
@@ -54,7 +55,7 @@ void ColouriseSMLDoc(
while (sc.More()) {
int state2 = -1;
- int chColor = sc.currentPos - 1;
+ Sci_Position chColor = sc.currentPos - 1;
bool advance = true;
switch (sc.state & 0x0f) {
@@ -89,10 +90,10 @@ void ColouriseSMLDoc(
case SCE_SML_IDENTIFIER:
if (!(issml(sc.ch) || sc.Match('\''))) {
- const int n = sc.currentPos - chToken;
+ const Sci_Position n = sc.currentPos - chToken;
if (n < 24) {
char t[24];
- for (int i = -n; i < 0; i++)
+ for (Sci_Position i = -n; i < 0; i++)
t[n + i] = static_cast<char>(sc.GetRelative(i));
t[n] = '\0';
if ((n == 1 && sc.chPrev == '_') || keywords.InList(t))
@@ -205,7 +206,7 @@ void ColouriseSMLDoc(
}
void FoldSMLDoc(
- unsigned int, int,
+ Sci_PositionU, Sci_Position,
int,
WordList *[],
Accessor &)