From a966c5e5da085496a304d62e2b522febb2fb72f0 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 8 Nov 2010 09:19:59 +1100 Subject: =?UTF-8?q?Feature=20#3104091.=20Folding=20for=20CASE=20in=20SQL.?= =?UTF-8?q?=20From=20J=C3=A9r=C3=B4me=20LAFORGE.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lexers/LexSQL.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lexers/LexSQL.cxx') diff --git a/lexers/LexSQL.cxx b/lexers/LexSQL.cxx index 1375af5cb..14785ed49 100644 --- a/lexers/LexSQL.cxx +++ b/lexers/LexSQL.cxx @@ -307,7 +307,10 @@ static void FoldSQLDoc(unsigned int startPos, int length, int initStyle, } else { s[j] = '\0'; } - if ((!foldOnlyBegin) && (strcmp(s, "if") == 0 || strcmp(s, "loop") == 0)) { + if ((!foldOnlyBegin) && ( + strcmp(s, "if") == 0 || + strcmp(s, "loop") == 0 || + strcmp(s, "case") == 0)) { if (endFound) { // ignore endFound = false; -- cgit v1.2.3