fix: Text editors highlighting doc comments when they shouldn't
This commit is contained in:
parent
7434fdec6f
commit
4f72c60eb0
@ -31,6 +31,13 @@ namespace hex::plugin::builtin {
|
|||||||
auto languageDef = TextEditor::LanguageDefinition();
|
auto languageDef = TextEditor::LanguageDefinition();
|
||||||
for (auto &[name, identifier] : languageDef.mIdentifiers)
|
for (auto &[name, identifier] : languageDef.mIdentifiers)
|
||||||
identifier.mDeclaration = "";
|
identifier.mDeclaration = "";
|
||||||
|
languageDef.mCaseSensitive = false;
|
||||||
|
languageDef.mAutoIndentation = false;
|
||||||
|
languageDef.mCommentStart = "";
|
||||||
|
languageDef.mCommentEnd = "";
|
||||||
|
languageDef.mSingleLineComment = "";
|
||||||
|
languageDef.mDocComment = "";
|
||||||
|
languageDef.mGlobalDocComment = "";
|
||||||
|
|
||||||
responseEditor.SetLanguageDefinition(languageDef);
|
responseEditor.SetLanguageDefinition(languageDef);
|
||||||
|
|
||||||
|
@ -124,6 +124,8 @@ namespace hex::plugin::builtin {
|
|||||||
langDef.mCommentStart = "";
|
langDef.mCommentStart = "";
|
||||||
langDef.mCommentEnd = "";
|
langDef.mCommentEnd = "";
|
||||||
langDef.mSingleLineComment = "";
|
langDef.mSingleLineComment = "";
|
||||||
|
langDef.mDocComment = "";
|
||||||
|
langDef.mGlobalDocComment = "";
|
||||||
|
|
||||||
initialized = true;
|
initialized = true;
|
||||||
}
|
}
|
||||||
@ -1589,6 +1591,7 @@ namespace hex::plugin::builtin {
|
|||||||
std::scoped_lock lock(m_logMutex);
|
std::scoped_lock lock(m_logMutex);
|
||||||
|
|
||||||
for (auto line : wolv::util::splitString(message, "\n")) {
|
for (auto line : wolv::util::splitString(message, "\n")) {
|
||||||
|
if (!wolv::util::trim(line).empty()) {
|
||||||
switch (level) {
|
switch (level) {
|
||||||
using enum pl::core::LogConsole::Level;
|
using enum pl::core::LogConsole::Level;
|
||||||
|
|
||||||
@ -1598,6 +1601,7 @@ namespace hex::plugin::builtin {
|
|||||||
case Error: line = hex::format("E: {}", line); break;
|
case Error: line = hex::format("E: {}", line); break;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_console->emplace_back(line);
|
m_console->emplace_back(line);
|
||||||
m_consoleNeedsUpdate = true;
|
m_consoleNeedsUpdate = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user