diff options
author | nyamatongwe <unknown> | 2007-03-16 21:58:20 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2007-03-16 21:58:20 +0000 |
commit | 67dd733f00db484bd09251807ab27dc7052c57c1 (patch) | |
tree | 9b83e2d8d029c20ccffec9fe3f87a64c315f44bb /src | |
parent | 87857e0651abf02e058ab388bffd438e01e58cf2 (diff) | |
download | scintilla-mirror-67dd733f00db484bd09251807ab27dc7052c57c1.tar.gz |
Added "case" to fix for bug #1681928.
Diffstat (limited to 'src')
-rw-r--r-- | src/LexMSSQL.cxx | 10 |
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--; } } |