From 0f5f2d6e582d255767e3f739d925155872d9ce64 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 24 Jan 2011 17:15:13 +1100 Subject: Remove fold.sql.exists as no longer needed due to folding on 'then' instead of 'if'. --- lexers/LexSQL.cxx | 13 +++---------- 1 file 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 { 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--; -- cgit v1.2.3