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")); }