diff options
author | nyamatongwe <devnull@localhost> | 2003-07-23 11:37:42 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2003-07-23 11:37:42 +0000 |
commit | b9f926a261a364b6358d7519e0da7980d36fb3e9 (patch) | |
tree | e261bf6dc1445f47d7669fb94aaa6c4d36dcc22f /src | |
parent | ad98c5699640233cb988b0fd2f5917ef19646c21 (diff) | |
download | scintilla-mirror-b9f926a261a364b6358d7519e0da7980d36fb3e9.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) { |