From 439d6cb28fcfdc0a780d94e023eea088fcf7201f Mon Sep 17 00:00:00 2001 From: Aditya Toshniwal Date: Mon, 17 Jun 2024 16:16:15 +0530 Subject: [PATCH] Fixed an issue where backslash breaks syntax highlighting. #7528 --- docs/en_US/release_notes_8_9.rst | 1 + .../static/js/components/ReactCodeMirror/extensions/dialect.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en_US/release_notes_8_9.rst b/docs/en_US/release_notes_8_9.rst index 885583f16..382fe138d 100644 --- a/docs/en_US/release_notes_8_9.rst +++ b/docs/en_US/release_notes_8_9.rst @@ -37,5 +37,6 @@ Bug fixes | `Issue #7414 `_ - Add support for comments on RLS policy object. | `Issue #7481 `_ - Fixed an issue where dark theme shows white background when all tabs are closed. | `Issue #7516 `_ - Ensure preferences can be loaded using preferences.json. + | `Issue #7528 `_ - Ensure preferences can be loaded using preferences.json. | `Issue #7536 `_ - Search Objects dialog should focus on search input on open. | `Issue #7555 `_ - Fixed an issue where query tool shortcuts for find/replace are not working. diff --git a/web/pgadmin/static/js/components/ReactCodeMirror/extensions/dialect.js b/web/pgadmin/static/js/components/ReactCodeMirror/extensions/dialect.js index a8dba2518..f2b227ddb 100644 --- a/web/pgadmin/static/js/components/ReactCodeMirror/extensions/dialect.js +++ b/web/pgadmin/static/js/components/ReactCodeMirror/extensions/dialect.js @@ -4,7 +4,6 @@ const extraKeywords = 'unsafe'; const keywords = PostgreSQL.spec.keywords.replace(/\b\w\b/, '') + ' ' + extraKeywords; const PgSQL = SQLDialect.define({ - backslashEscapes: true, charSetCasts: true, doubleDollarQuotedStrings: false, operatorChars: '+-*/<>=~!@#%^&|`?',