Commit 470a5499 authored by Leandro Melo's avatar Leandro Melo
Browse files

Generic highlighter: Once there is an id the definition is considered found.

parent 47046ec1
......@@ -186,6 +186,7 @@ void PlainTextEditor::configure(const Core::MimeType &mimeType)
}
if (!definitionId.isEmpty()) {
m_isMissingSyntaxDefinition = false;
const QSharedPointer<HighlightDefinition> &definition =
Manager::instance()->definition(definitionId);
if (!definition.isNull()) {
......@@ -198,8 +199,6 @@ void PlainTextEditor::configure(const Core::MimeType &mimeType)
setCodeFoldingSupported(true);
setCodeFoldingVisible(true);
m_isMissingSyntaxDefinition = false;
}
} else if (file()) {
const QString &fileName = file()->fileName();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment