aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2007-03-16 21:58:20 +0000
committernyamatongwe <devnull@localhost>2007-03-16 21:58:20 +0000
commit721ab1564b9129dc56192e22397b9dbb9834eba6 (patch)
tree9b83e2d8d029c20ccffec9fe3f87a64c315f44bb /src
parent85ea8ae839835795aa2c3ced540f1a3d5bfbfc8f (diff)
downloadscintilla-mirror-721ab1564b9129dc56192e22397b9dbb9834eba6.tar.gz
Added "case" to fix for bug #1681928.
Diffstat (limited to 'src')
-rw-r--r--src/LexMSSQL.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/LexMSSQL.cxx b/src/LexMSSQL.cxx
index c5d38c31f..5f5a562ad 100644
--- a/src/LexMSSQL.cxx
+++ b/src/LexMSSQL.cxx
@@ -307,19 +307,19 @@ static void FoldMSSQLDoc(unsigned int startPos, int length, int, WordList *[], A
inComment = (style == SCE_MSSQL_COMMENT);
}
if (style == SCE_MSSQL_STATEMENT) {
- // Folding between begin and end
- if (ch == 'b' || ch == 'e' || ch=='B' || ch=='E') {
+ // Folding between begin or case and end
+ if (ch == 'b' || ch == 'B' || ch == 'c' || ch == 'C' || ch == 'e' || ch == 'E') {
for (unsigned int j = 0; j < 5; j++) {
if (!iswordchar(styler[i + j])) {
break;
}
- s[j] = styler[i + j];
+ s[j] = static_cast<char>(tolower(styler[i + j]));
s[j + 1] = '\0';
}
- if (CompareCaseInsensitive(s, "begin") == 0) {
+ if ((strcmp(s, "begin") == 0) || (strcmp(s, "case") == 0)) {
levelCurrent++;
}
- if (CompareCaseInsensitive(s, "end") == 0) {
+ if (strcmp(s, "end") == 0) {
levelCurrent--;
}
}