From 3bdefd88d0e227d8b5444318855e48b55b13fbe0 Mon Sep 17 00:00:00 2001 From: byronigoe Date: Mon, 17 Jul 2023 16:12:31 -0400 Subject: [PATCH] Fix handling of URLs in JSON Fix #13522, close 13907 --- PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp index c0073a559..15107e4ce 100644 --- a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp +++ b/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp @@ -724,6 +724,8 @@ void ScintillaEditView::setJsonLexer(bool isJson5) execute(SCI_SETPROPERTY, reinterpret_cast("fold"), reinterpret_cast("1")); execute(SCI_SETPROPERTY, reinterpret_cast("fold.compact"), reinterpret_cast("0")); + execute(SCI_SETPROPERTY, reinterpret_cast("lexer.json.escape.sequence"), reinterpret_cast("1")); + if (j == L_JSON5) execute(SCI_SETPROPERTY, reinterpret_cast("lexer.json.allow.comments"), reinterpret_cast("1")); }