diff options
| author | nyamatongwe <unknown> | 2011-01-18 10:46:25 +1100 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2011-01-18 10:46:25 +1100 | 
| commit | da7156d1714ddfd35fc67be91c889c0aad5767e7 (patch) | |
| tree | 9f99775a4e8c38c0a7aa69477f347bd9507fe015 | |
| parent | 2b3b04482cc63989716dfd316842d111dcc584be (diff) | |
| download | scintilla-mirror-da7156d1714ddfd35fc67be91c889c0aad5767e7.tar.gz | |
Fix problem with folding within PACKAGE. Bug #3160032.
| -rw-r--r-- | lexers/LexSQL.cxx | 6 | 
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);  			}  		} | 
