diff options
author | nyamatongwe <unknown> | 2003-07-23 11:37:42 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-07-23 11:37:42 +0000 |
commit | d6d2537de97b0dcd52fc711a82cbceb936ee4c2e (patch) | |
tree | e261bf6dc1445f47d7669fb94aaa6c4d36dcc22f /src | |
parent | 5b5ca404e615600de0bdff49ad79d3400360bc63 (diff) | |
download | scintilla-mirror-d6d2537de97b0dcd52fc711a82cbceb936ee4c2e.tar.gz |
Patch from Alexey to fold literal strings and comments.
Diffstat (limited to 'src')
-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) { |