diff options
Diffstat (limited to 'src/LexSQL.cxx')
| -rw-r--r-- | src/LexSQL.cxx | 4 | 
1 files changed, 1 insertions, 3 deletions
| diff --git a/src/LexSQL.cxx b/src/LexSQL.cxx index 0f5ca5614..900f8ddc2 100644 --- a/src/LexSQL.cxx +++ b/src/LexSQL.cxx @@ -44,20 +44,18 @@ static void ColouriseSQLDoc(unsigned int startPos, int length,  	bool fold = styler.GetPropSet().GetInt("fold");  	int lineCurrent = styler.GetLine(startPos);  	int spaceFlags = 0; -	int indentCurrent = 0;  	int state = initStyle;  	char chPrev = ' ';  	char chNext = styler[startPos];  	styler.StartSegment(startPos);  	unsigned int lengthDoc = startPos + length; -	bool prevCr = false;  	for (unsigned int i = startPos; i <= lengthDoc; i++) {  		char ch = chNext;  		chNext = styler.SafeGetCharAt(i + 1);  		if ((ch == '\r' && chNext != '\n') || (ch == '\n')) { -			indentCurrent = styler.IndentAmount(lineCurrent, &spaceFlags); +			int indentCurrent = styler.IndentAmount(lineCurrent, &spaceFlags);  			int lev = indentCurrent;  			if (!(indentCurrent & SC_FOLDLEVELWHITEFLAG)) {  				// Only non whitespace lines can be headers | 
