aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexSQL.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-01-24 17:15:13 +1100
committernyamatongwe <unknown>2011-01-24 17:15:13 +1100
commit0f5f2d6e582d255767e3f739d925155872d9ce64 (patch)
treead040cc4c677a39c0f3a94c162e4b2f4326a7395 /lexers/LexSQL.cxx
parent267c24ec097c65a9c8987a121b7d84e6de6becd9 (diff)
downloadscintilla-mirror-0f5f2d6e582d255767e3f739d925155872d9ce64.tar.gz
Remove fold.sql.exists as no longer needed due to folding on 'then' instead of 'if'.
Diffstat (limited to 'lexers/LexSQL.cxx')
-rw-r--r--lexers/LexSQL.cxx13
1 files changed, 3 insertions, 10 deletions
diff --git a/lexers/LexSQL.cxx b/lexers/LexSQL.cxx
index d60e6c0af..2b2eac08e 100644
--- a/lexers/LexSQL.cxx
+++ b/lexers/LexSQL.cxx
@@ -172,7 +172,6 @@ struct OptionsSQL {
bool foldComment;
bool foldCompact;
bool foldOnlyBegin;
- bool foldSqlExists;
bool sqlBackticksIdentifier;
bool sqlNumbersignComment;
bool sqlBackslashEscapes;
@@ -183,7 +182,6 @@ struct OptionsSQL {
foldComment = false;
foldCompact = false;
foldOnlyBegin = false;
- foldSqlExists = false;
sqlBackticksIdentifier = false;
sqlNumbersignComment = false;
sqlBackslashEscapes = false;
@@ -216,9 +214,6 @@ struct OptionSetSQL : public OptionSet<OptionsSQL> {
DefineProperty("fold.sql.only.begin", &OptionsSQL::foldOnlyBegin);
- DefineProperty("fold.sql.exists", &OptionsSQL::foldSqlExists,
- "Enables \"EXISTS\" to end a fold as is started by \"IF\" in \"DROP TABLE IF EXISTS\".");
-
DefineProperty("lexer.sql.backticks.identifier", &OptionsSQL::sqlBackticksIdentifier);
DefineProperty("lexer.sql.numbersign.comment", &OptionsSQL::sqlNumbersignComment,
@@ -671,11 +666,9 @@ void SCI_METHOD LexerSQL::Fold(unsigned int startPos, int length, int initStyle,
levelNext++;
sqlStatesCurrentLine = sqlStates.IntoDeclareBlock(sqlStatesCurrentLine, false);
} else if ((strcmp(s, "end") == 0) ||
- // DROP TABLE IF EXISTS or CREATE TABLE IF NOT EXISTS
- (options.foldSqlExists && (strcmp(s, "exists") == 0)) ||
- // SQL Anywhere permits IF ... ELSE ... ENDIF
- // will only be active if "endif" appears in the
- // keyword list.
+ // SQL Anywhere permits IF ... ELSE ... ENDIF
+ // will only be active if "endif" appears in the
+ // keyword list.
(strcmp(s, "endif") == 0)) {
endFound = true;
levelNext--;