aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexSQL.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-01-18 10:46:25 +1100
committernyamatongwe <devnull@localhost>2011-01-18 10:46:25 +1100
commit371d923479da96d427f38067343fd645881895df (patch)
tree3b8b58e35b1767b94b73c144c28c09b9d949010a /lexers/LexSQL.cxx
parent8e8dd9639d9c3bf408f56b0a651d8a4bcfda4841 (diff)
downloadscintilla-mirror-371d923479da96d427f38067343fd645881895df.tar.gz
Fix problem with folding within PACKAGE. Bug #3160032.
Diffstat (limited to 'lexers/LexSQL.cxx')
-rw-r--r--lexers/LexSQL.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/lexers/LexSQL.cxx b/lexers/LexSQL.cxx
index 927810e04..6567b817a 100644
--- a/lexers/LexSQL.cxx
+++ b/lexers/LexSQL.cxx
@@ -690,7 +690,11 @@ void SCI_METHOD LexerSQL::Fold(unsigned int startPos, int length, int initStyle,
sqlStatesCurrentLine = sqlStates.IgnoreWhen(sqlStatesCurrentLine, true);
} else if ((!options.foldOnlyBegin) && !sqlStates.IsIntoDeclareBlock(sqlStatesCurrentLine) && strcmp(s, "exception") == 0) {
sqlStatesCurrentLine = sqlStates.IntoExceptionBlock(sqlStatesCurrentLine, true);
- } else if ((!options.foldOnlyBegin) && strcmp (s, "declare") == 0) {
+ } else if ((!options.foldOnlyBegin) &&
+ (strcmp(s, "declare") == 0 ||
+ strcmp(s, "function") == 0 ||
+ strcmp(s, "procedure") == 0 ||
+ strcmp(s, "package") == 0)) {
sqlStatesCurrentLine = sqlStates.IntoDeclareBlock(sqlStatesCurrentLine, true);
}
}