From 330f1e0c7e6270612620ec049dc239fea3c6debc Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Tue, 25 Jun 2019 12:07:19 +1000 Subject: Bug [#2098]. Fix single quoted strings where '" (quote, double quote) was seen as continuing the string. --- lexers/LexSQL.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexers') diff --git a/lexers/LexSQL.cxx b/lexers/LexSQL.cxx index 69916b9fb..40d7e1f03 100644 --- a/lexers/LexSQL.cxx +++ b/lexers/LexSQL.cxx @@ -537,7 +537,7 @@ void SCI_METHOD LexerSQL::Lex(Sci_PositionU startPos, Sci_Position length, int i if (options.sqlBackslashEscapes && sc.ch == '\\') { sc.Forward(); } else if (sc.ch == '\'') { - if (sc.chNext == '\"') { + if (sc.chNext == '\'') { sc.Forward(); } else { sc.ForwardSetState(SCE_SQL_DEFAULT); -- cgit v1.2.3