eepp: Improved String::unescape. Improved JavaScript+TypeScript regex tokenization. Minor fix for unescaped search in text highlights in UICodeEditor.

ecode: Avoid reloading plugins when a new instance of ecode is opened. Improved plugins logs.
This commit is contained in:
Martín Lucas Golini
2023-05-25 02:10:41 -03:00
parent 6fa7f5c63b
commit 893943cc85
16 changed files with 100 additions and 31 deletions

View File

@@ -153,12 +153,16 @@ void FormatterPlugin::loadFormatterConfig( const std::string& path, bool updateC
return;
json j;
if ( updateConfigFile ) {
mConfigHash = String::hash( data );
}
try {
j = json::parse( data, nullptr, true, true );
} catch ( const json::exception& e ) {
Log::error( "FormatterPlugin::loadFormatterConfig - Error parsing formatter config from "
"path %s, error: ",
path.c_str(), e.what() );
"path %s, error: %s, config file content:\n%s",
path.c_str(), e.what(), data.c_str() );
if ( !updateConfigFile )
return;
// Recreate it