diff options
| author | nyamatongwe <unknown> | 2001-04-20 06:38:14 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2001-04-20 06:38:14 +0000 | 
| commit | e593f73fec0f3ff79cdf9c03e732d8229843a4dc (patch) | |
| tree | 61592896a81d65674ae0f8415b32228eaba65f8c /src/LexLua.cxx | |
| parent | c92011607b5db56771770b0fa0f9e50de528256b (diff) | |
| download | scintilla-mirror-e593f73fec0f3ff79cdf9c03e732d8229843a4dc.tar.gz | |
Simplified because of warnings.
Diffstat (limited to 'src/LexLua.cxx')
| -rw-r--r-- | src/LexLua.cxx | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/src/LexLua.cxx b/src/LexLua.cxx index 6c4b3ed5d..7bd06b430 100644 --- a/src/LexLua.cxx +++ b/src/LexLua.cxx @@ -222,7 +222,7 @@ static void ColouriseLuaDoc(unsigned int startPos,  	styler.ColourTo(lengthDoc - 1, state);  } -static void FoldLuaDoc(unsigned int startPos, int length, int initStyle, WordList *[], +static void FoldLuaDoc(unsigned int startPos, int length, int /* initStyle */, WordList *[],                         Accessor &styler) {  	unsigned int lengthDoc = startPos + length;  	int visibleChars = 0; @@ -231,12 +231,11 @@ static void FoldLuaDoc(unsigned int startPos, int length, int initStyle, WordLis  	int levelCurrent = levelPrev;  	char chNext = styler[startPos];  	int styleNext = styler.StyleAt(startPos); -	int style = initStyle;  	char s[10];  	for (unsigned int i = startPos; i < lengthDoc; i++) {  		char ch = chNext;  		chNext = styler.SafeGetCharAt(i + 1); -		style = styleNext; +		int style = styleNext;  		styleNext = styler.StyleAt(i + 1);  		bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n');  		if (style == SCE_LUA_WORD) | 
