Fix handling of URLs in JSON

Fix #13522, close 13907
This commit is contained in:
byronigoe 2023-07-17 16:12:31 -04:00 committed by Don Ho
parent 2804ac79f0
commit 3bdefd88d0

View File

@ -724,6 +724,8 @@ void ScintillaEditView::setJsonLexer(bool isJson5)
execute(SCI_SETPROPERTY, reinterpret_cast<WPARAM>("fold"), reinterpret_cast<LPARAM>("1"));
execute(SCI_SETPROPERTY, reinterpret_cast<WPARAM>("fold.compact"), reinterpret_cast<LPARAM>("0"));
execute(SCI_SETPROPERTY, reinterpret_cast<WPARAM>("lexer.json.escape.sequence"), reinterpret_cast<LPARAM>("1"));
if (j == L_JSON5)
execute(SCI_SETPROPERTY, reinterpret_cast<WPARAM>("lexer.json.allow.comments"), reinterpret_cast<LPARAM>("1"));
}