diff options
| author | Joe Mueller <devnull@localhost> | 2015-07-30 14:35:17 +1000 |
|---|---|---|
| committer | Joe Mueller <devnull@localhost> | 2015-07-30 14:35:17 +1000 |
| commit | 96229bb5f01e86efe382523e1ee79ff23bdcc8e0 (patch) | |
| tree | 5aa3c8becad92a397b02445001383e188070f287 /lexers/LexTCL.cxx | |
| parent | 7604a6b2a98fc2250408368eb51f8f6827d888c8 (diff) | |
| download | scintilla-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/LexTCL.cxx')
| -rw-r--r-- | lexers/LexTCL.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lexers/LexTCL.cxx b/lexers/LexTCL.cxx index 18334a323..48af1e7fe 100644 --- a/lexers/LexTCL.cxx +++ b/lexers/LexTCL.cxx @@ -45,7 +45,7 @@ static inline bool IsANumberChar(int ch) { ch == '.' || ch == '-' || ch == '+'); } -static void ColouriseTCLDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *keywordlists[], Accessor &styler) { +static void ColouriseTCLDoc(Sci_PositionU startPos, Sci_Position length, int , WordList *keywordlists[], Accessor &styler) { #define isComment(s) (s==SCE_TCL_COMMENT || s==SCE_TCL_COMMENTLINE || s==SCE_TCL_COMMENT_BOX || s==SCE_TCL_BLOCK_COMMENT) bool foldComment = styler.GetPropertyInt("fold.comment") != 0; bool commentLevel = false; @@ -58,7 +58,7 @@ static void ColouriseTCLDoc(Sci_PositionU startPos, Sci_Position length, int, Wo bool expected = 0; bool subParen = 0; - int currentLine = styler.GetLine(startPos); + Sci_Position currentLine = styler.GetLine(startPos); if (currentLine > 0) currentLine--; length += startPos - styler.LineStart(currentLine); |
