diff options
Diffstat (limited to 'src/LexLua.cxx')
| -rw-r--r-- | src/LexLua.cxx | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/src/LexLua.cxx b/src/LexLua.cxx index 159bc1585..159168602 100644 --- a/src/LexLua.cxx +++ b/src/LexLua.cxx @@ -270,8 +270,13 @@ static void FoldLuaDoc(unsigned int startPos, int length, int /* initStyle */, W  			} else if (ch == '}' || ch == ')') {  				levelCurrent--;  			} +		} else if (style == SCE_LUA_COMMENT || style == SCE_LUA_LITERALSTRING) { +			if (ch == '[' && chNext == '[') { +				levelCurrent++; +			} else if (ch == ']' && chNext == ']') { +				levelCurrent--; +			}  		} -  		if (atEOL) {  			int lev = levelPrev;  			if (visibleChars == 0 && foldCompact) { | 
