diff options
Diffstat (limited to 'lexers/LexBash.cxx')
| -rw-r--r-- | lexers/LexBash.cxx | 20 | 
1 files changed, 10 insertions, 10 deletions
| diff --git a/lexers/LexBash.cxx b/lexers/LexBash.cxx index 4ce937a80..21c47e577 100644 --- a/lexers/LexBash.cxx +++ b/lexers/LexBash.cxx @@ -223,14 +223,14 @@ static void ColouriseBashDoc(Sci_PositionU startPos, Sci_Position length, int in  	int numBase = 0;  	int digit; -	unsigned int endPos = startPos + length; +	Sci_PositionU endPos = startPos + length;  	int cmdState = BASH_CMD_START;  	int testExprType = 0;  	// Always backtracks to the start of a line that is not a continuation  	// of the previous line (i.e. start of a bash command segment) -	int ln = styler.GetLine(startPos); -	if (ln > 0 && startPos == static_cast<unsigned int>(styler.LineStart(ln))) +	Sci_Position ln = styler.GetLine(startPos); +	if (ln > 0 && startPos == static_cast<Sci_PositionU>(styler.LineStart(ln)))  		ln--;  	for (;;) {  		startPos = styler.LineStart(ln); @@ -752,10 +752,10 @@ static void ColouriseBashDoc(Sci_PositionU startPos, Sci_Position length, int in  	sc.Complete();  } -static bool IsCommentLine(int line, Accessor &styler) { -	int pos = styler.LineStart(line); -	int eol_pos = styler.LineStart(line + 1) - 1; -	for (int i = pos; i < eol_pos; i++) { +static bool IsCommentLine(Sci_Position line, Accessor &styler) { +	Sci_Position pos = styler.LineStart(line); +	Sci_Position eol_pos = styler.LineStart(line + 1) - 1; +	for (Sci_Position i = pos; i < eol_pos; i++) {  		char ch = styler[i];  		if (ch == '#')  			return true; @@ -769,15 +769,15 @@ static void FoldBashDoc(Sci_PositionU startPos, Sci_Position length, int, WordLi  						Accessor &styler) {  	bool foldComment = styler.GetPropertyInt("fold.comment") != 0;  	bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; -	unsigned int endPos = startPos + length; +	Sci_PositionU endPos = startPos + length;  	int visibleChars = 0;  	int skipHereCh = 0; -	int lineCurrent = styler.GetLine(startPos); +	Sci_Position lineCurrent = styler.GetLine(startPos);  	int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK;  	int levelCurrent = levelPrev;  	char chNext = styler[startPos];  	int styleNext = styler.StyleAt(startPos); -	for (unsigned int i = startPos; i < endPos; i++) { +	for (Sci_PositionU i = startPos; i < endPos; i++) {  		char ch = chNext;  		chNext = styler.SafeGetCharAt(i + 1);  		int style = styleNext; | 
