From 2f2dfccd799599295329f90c17998feabff132e9 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 25 Jul 2015 11:25:56 +1000 Subject: Use Sci_PositionU/Sci_Position for arguments to functional lexers, folders, and comment recognizers to allow for future implementation of 64-bit positions. --- lexers/LexProgress.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lexers/LexProgress.cxx') diff --git a/lexers/LexProgress.cxx b/lexers/LexProgress.cxx index 2031720a2..acbdaafe3 100644 --- a/lexers/LexProgress.cxx +++ b/lexers/LexProgress.cxx @@ -43,7 +43,7 @@ static inline bool IsAWordStart(int ch) { enum SentenceStart { SetSentenceStart = 0xf, ResetSentenceStart = 0x10}; // true -> bit = 0 -static void Colourise4glDoc(unsigned int startPos, int length, int initStyle, WordList *keywordlists[], +static void Colourise4glDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { WordList &keywords1 = *keywordlists[0]; // regular keywords @@ -205,7 +205,7 @@ static bool IsStreamCommentStyle(int style) { // Store both the current line's fold level and the next lines in the // level store to make it easy to pick up with each increment // and to make it possible to fiddle the current level for "} else {". -static void FoldNoBox4glDoc(unsigned int startPos, int length, int initStyle, +static void FoldNoBox4glDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, Accessor &styler) { bool foldComment = styler.GetPropertyInt("fold.comment") != 0; bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; @@ -265,7 +265,7 @@ static void FoldNoBox4glDoc(unsigned int startPos, int length, int initStyle, } } -static void Fold4glDoc(unsigned int startPos, int length, int initStyle, WordList *[], +static void Fold4glDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *[], Accessor &styler) { FoldNoBox4glDoc(startPos, length, initStyle, styler); } -- cgit v1.2.3