aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2007-03-16 21:52:07 +0000
committernyamatongwe <devnull@localhost>2007-03-16 21:52:07 +0000
commit85ea8ae839835795aa2c3ced540f1a3d5bfbfc8f (patch)
tree4f3e1232f58f6ee49f7a156b344ff79940108af1 /src
parentbd3b8fd1c6cf94d59634a69e66cea4a732eb6724 (diff)
downloadscintilla-mirror-85ea8ae839835795aa2c3ced540f1a3d5bfbfc8f.tar.gz
Made folding for MSSQL work case insensitively.
Fixes bug #1681928.
Diffstat (limited to 'src')
-rw-r--r--src/LexMSSQL.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LexMSSQL.cxx b/src/LexMSSQL.cxx
index a94666822..c5d38c31f 100644
--- a/src/LexMSSQL.cxx
+++ b/src/LexMSSQL.cxx
@@ -308,7 +308,7 @@ static void FoldMSSQLDoc(unsigned int startPos, int length, int, WordList *[], A
}
if (style == SCE_MSSQL_STATEMENT) {
// Folding between begin and end
- if (ch == 'b' || ch == 'e') {
+ if (ch == 'b' || ch == 'e' || ch=='B' || ch=='E') {
for (unsigned int j = 0; j < 5; j++) {
if (!iswordchar(styler[i + j])) {
break;
@@ -316,10 +316,10 @@ static void FoldMSSQLDoc(unsigned int startPos, int length, int, WordList *[], A
s[j] = styler[i + j];
s[j + 1] = '\0';
}
- if (strcmp(s, "begin") == 0) {
+ if (CompareCaseInsensitive(s, "begin") == 0) {
levelCurrent++;
}
- if (strcmp(s, "end") == 0) {
+ if (CompareCaseInsensitive(s, "end") == 0) {
levelCurrent--;
}
}