diff options
author | Joe Mueller <unknown> | 2015-07-30 14:35:17 +1000 |
---|---|---|
committer | Joe Mueller <unknown> | 2015-07-30 14:35:17 +1000 |
commit | 58471e908a3b74b27379bb19a13d62cd8d4476b0 (patch) | |
tree | 8f61293f34d008fea20584c631d23e58b3fe53aa /lexers/LexErlang.cxx | |
parent | 2270ab97445c6f12bd0fddb273ab617fdb421594 (diff) | |
download | scintilla-mirror-58471e908a3b74b27379bb19a13d62cd8d4476b0.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/LexErlang.cxx')
-rw-r--r-- | lexers/LexErlang.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lexers/LexErlang.cxx b/lexers/LexErlang.cxx index b4dd6e484..3d3c1e89f 100644 --- a/lexers/LexErlang.cxx +++ b/lexers/LexErlang.cxx @@ -500,7 +500,7 @@ static void ColouriseErlangDoc(Sci_PositionU startPos, Sci_Position length, int static int ClassifyErlangFoldPoint( Accessor &styler, int styleNext, - int keyword_start + Sci_Position keyword_start ) { int lev = 0; if (styler.Match(keyword_start,"case") @@ -524,20 +524,20 @@ static void FoldErlangDoc( Sci_PositionU startPos, Sci_Position length, int initStyle, WordList** /*keywordlists*/, Accessor &styler ) { - unsigned int endPos = startPos + length; - int currentLine = styler.GetLine(startPos); + Sci_PositionU endPos = startPos + length; + Sci_Position currentLine = styler.GetLine(startPos); int lev; int previousLevel = styler.LevelAt(currentLine) & SC_FOLDLEVELNUMBERMASK; int currentLevel = previousLevel; int styleNext = styler.StyleAt(startPos); int style = initStyle; int stylePrev; - int keyword_start = 0; + Sci_Position keyword_start = 0; char ch; char chNext = styler.SafeGetCharAt(startPos); bool atEOL; - for (unsigned int i = startPos; i < endPos; i++) { + for (Sci_PositionU i = startPos; i < endPos; i++) { ch = chNext; chNext = styler.SafeGetCharAt(i + 1); |