aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2002-08-13 08:20:23 +0000
committernyamatongwe <unknown>2002-08-13 08:20:23 +0000
commit104188fbe2aa005fcb6904105f2ce8268c6565fd (patch)
treebd64a540cb42d8125a957dbb0f1190b3662dfc6a /src
parentebf94cc1fe9e342f269b4d4047cf28bd416185ce (diff)
downloadscintilla-mirror-104188fbe2aa005fcb6904105f2ce8268c6565fd.tar.gz
Patch from Laurent to make case statements fold.
Diffstat (limited to 'src')
-rw-r--r--src/LexPascal.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/LexPascal.cxx b/src/LexPascal.cxx
index 491d968ac..2f2be32e4 100644
--- a/src/LexPascal.cxx
+++ b/src/LexPascal.cxx
@@ -32,10 +32,13 @@ static int classifyWordPascal(unsigned int start, unsigned int end, WordList &ke
else {
if (keywords.InList(s)) {
chAttr = SCE_C_WORD;
- if (strcmp(s, "begin") == 0 || strcmp(s, "object") == 0)
+ if (strcmp(s, "begin") == 0 ||
+ strcmp(s, "object") == 0 ||
+ strcmp(s,"case") == 0) {
lev=1;
- else if (strcmp(s, "end") == 0)
+ } else if (strcmp(s, "end") == 0) {
lev=-1;
+ }
}
}
styler.ColourTo(end, chAttr);