diff --git a/src/eepp/ui/doc/languages/markdown.cpp b/src/eepp/ui/doc/languages/markdown.cpp index 0433b19a2..190e0b1db 100644 --- a/src/eepp/ui/doc/languages/markdown.cpp +++ b/src/eepp/ui/doc/languages/markdown.cpp @@ -27,7 +27,7 @@ void addMarkdown() { { { "%*", "[%*\n]", "\\" }, "operator" }, { { "%s%_", "[%_\n]", "\\" }, "type" }, { { "^%_", "[%_\n]", "\\" }, "type" }, - { { "^#.-\n" }, "keyword" }, + { { "[^\n]#.-\n" }, "keyword" }, { { "\n%_", "[%_\n]", "\\" }, "type" }, { { "%[!%[([^%]].-)%]%((https?://[%w_.~!*:@&+$/?%%#-]-%w[-.%w]*%.%w%w%w?%w?:?%d*/" "?[%w_.~!*:@&+$/?%%#=-]*)%)%]%((https?://[%w_.~!*:@&+$/" diff --git a/src/tools/ecode/plugins/linter/linterplugin.cpp b/src/tools/ecode/plugins/linter/linterplugin.cpp index 932237e8d..248059950 100644 --- a/src/tools/ecode/plugins/linter/linterplugin.cpp +++ b/src/tools/ecode/plugins/linter/linterplugin.cpp @@ -471,8 +471,9 @@ PluginRequestHandle LinterPlugin::processMessage( const PluginMessage& notificat const auto& matches = foundLine->second; for ( const auto& match : matches ) { - if ( pos.column() >= match.range.start().column() && - pos.column() <= match.range.end().column() ) { + if ( ( pos.column() >= match.range.start().column() && + pos.column() <= match.range.end().column() ) || + matches.size() == 1 ) { PluginInmediateResponse msg; msg.type = PluginMessageType::GetErrorOrWarning; json rj; diff --git a/src/tools/ecode/plugins/lsp/lspclientplugin.cpp b/src/tools/ecode/plugins/lsp/lspclientplugin.cpp index fb3f92667..8855204d9 100644 --- a/src/tools/ecode/plugins/lsp/lspclientplugin.cpp +++ b/src/tools/ecode/plugins/lsp/lspclientplugin.cpp @@ -1824,7 +1824,7 @@ void LSPClientPlugin::onDocumentHoverResponse( UICodeEditor* editor, const LSPHo if ( errResp.isResponse() ) { LSPHover cresp( resp ); cresp.contents[0].value = errResp.getResponse().data["text"].get() + - "\n\n" + cresp.contents[0].value; + "\n---\n\n" + cresp.contents[0].value; displayTooltipFn( editor, cresp, getFinalPosFn( editor ) ); } else { displayTooltipFn( editor, resp, pos );