diff options
Diffstat (limited to 'lexers/LexMatlab.cxx')
-rw-r--r-- | lexers/LexMatlab.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lexers/LexMatlab.cxx b/lexers/LexMatlab.cxx index 4dfd512c8..8bf94fe29 100644 --- a/lexers/LexMatlab.cxx +++ b/lexers/LexMatlab.cxx @@ -49,16 +49,16 @@ static bool IsOctaveCommentChar(int c) { return (c == '%' || c == '#') ; } -static bool IsMatlabComment(Accessor &styler, int pos, int len) { +static bool IsMatlabComment(Accessor &styler, Sci_Position pos, Sci_Position len) { return len > 0 && IsMatlabCommentChar(styler[pos]) ; } -static bool IsOctaveComment(Accessor &styler, int pos, int len) { +static bool IsOctaveComment(Accessor &styler, Sci_Position pos, Sci_Position len) { return len > 0 && IsOctaveCommentChar(styler[pos]) ; } static void ColouriseMatlabOctaveDoc( - unsigned int startPos, int length, int initStyle, + Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler, bool (*IsCommentChar)(int), bool ismatlab) { @@ -235,19 +235,19 @@ static void ColouriseMatlabOctaveDoc( sc.Complete(); } -static void ColouriseMatlabDoc(unsigned int startPos, int length, int initStyle, +static void ColouriseMatlabDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { ColouriseMatlabOctaveDoc(startPos, length, initStyle, keywordlists, styler, IsMatlabCommentChar, true); } -static void ColouriseOctaveDoc(unsigned int startPos, int length, int initStyle, +static void ColouriseOctaveDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { ColouriseMatlabOctaveDoc(startPos, length, initStyle, keywordlists, styler, IsOctaveCommentChar, false); } -static void FoldMatlabOctaveDoc(unsigned int startPos, int length, int, +static void FoldMatlabOctaveDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *[], Accessor &styler, - bool (*IsComment)(Accessor&, int, int)) { + bool(*IsComment)(Accessor&, Sci_Position, Sci_Position)) { int endPos = startPos + length; @@ -289,12 +289,12 @@ static void FoldMatlabOctaveDoc(unsigned int startPos, int length, int, } } -static void FoldMatlabDoc(unsigned int startPos, int length, int initStyle, +static void FoldMatlabDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { FoldMatlabOctaveDoc(startPos, length, initStyle, keywordlists, styler, IsMatlabComment); } -static void FoldOctaveDoc(unsigned int startPos, int length, int initStyle, +static void FoldOctaveDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { FoldMatlabOctaveDoc(startPos, length, initStyle, keywordlists, styler, IsOctaveComment); } |