aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-11-08 09:19:59 +1100
committernyamatongwe <devnull@localhost>2010-11-08 09:19:59 +1100
commita966c5e5da085496a304d62e2b522febb2fb72f0 (patch)
tree8e6c8b0881ce2e9c860b983116ea33d49ea3654e
parent934758d6a6de8876c2dba9195cde71e21a60d1ba (diff)
downloadscintilla-mirror-a966c5e5da085496a304d62e2b522febb2fb72f0.tar.gz
Feature #3104091. Folding for CASE in SQL. From Jérôme LAFORGE.
-rw-r--r--lexers/LexSQL.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/lexers/LexSQL.cxx b/lexers/LexSQL.cxx
index 1375af5cb..14785ed49 100644
--- a/lexers/LexSQL.cxx
+++ b/lexers/LexSQL.cxx
@@ -307,7 +307,10 @@ static void FoldSQLDoc(unsigned int startPos, int length, int initStyle,
} else {
s[j] = '\0';
}
- if ((!foldOnlyBegin) && (strcmp(s, "if") == 0 || strcmp(s, "loop") == 0)) {
+ if ((!foldOnlyBegin) && (
+ strcmp(s, "if") == 0 ||
+ strcmp(s, "loop") == 0 ||
+ strcmp(s, "case") == 0)) {
if (endFound) {
// ignore
endFound = false;