From 3c8561247c8edb33cb18d4f70390359363f42849 Mon Sep 17 00:00:00 2001 From: Justin Clift Date: Fri, 18 Aug 2017 09:09:25 +1000 Subject: Backport: Bug [#1968]. Use sql.backslash.escapes for double quoted strings. Backport of changeset 6377:ccc04ea8f7fd. --- doc/ScintillaHistory.html | 6 ++++++ lexers/LexSQL.cxx | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 3b867255d..fb59fd490 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -511,6 +511,8 @@ Thorsten Kani Bernhard M. Wiedemann Baldur Karlsson + + Justin Clift

@@ -567,6 +569,10 @@ Bug #1919.

  • + The SQL lexer uses sql.backslash.escapes for double quoted strings. + Bug #1968. +
  • +
  • Ensure redraw when application changes overtype mode so caret change visible even when not blinking. Notify application with SC_UPDATE_SELECTION when overtype changed - previously sent SC_UPDATE_CONTENT. diff --git a/lexers/LexSQL.cxx b/lexers/LexSQL.cxx index 871f4dce1..c88514359 100644 --- a/lexers/LexSQL.cxx +++ b/lexers/LexSQL.cxx @@ -547,7 +547,7 @@ void SCI_METHOD LexerSQL::Lex(Sci_PositionU startPos, Sci_Position length, int i } break; case SCE_SQL_STRING: - if (sc.ch == '\\') { + if (options.sqlBackslashEscapes && sc.ch == '\\') { // Escape sequence sc.Forward(); } else if (sc.ch == '\"') { -- cgit v1.2.3