forked from qt-creator/qt-creator
TextEditor: Simplify Utils::CommentDefinition structure
Change-Id: I8fc97ed61c47af2c3d9e5cc2bf81e97661204d4f Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
@@ -167,10 +167,10 @@ void PlainTextEditorWidget::configure(const Core::MimeType &mimeType)
|
||||
if (!definition.isNull() && definition->isValid()) {
|
||||
highlighter->setDefaultContext(definition->initialContext());
|
||||
|
||||
m_commentDefinition.setAfterWhiteSpaces(definition->isCommentAfterWhiteSpaces());
|
||||
m_commentDefinition.setSingleLine(definition->singleLineComment());
|
||||
m_commentDefinition.setMultiLineStart(definition->multiLineCommentStart());
|
||||
m_commentDefinition.setMultiLineEnd(definition->multiLineCommentEnd());
|
||||
m_commentDefinition.isAfterWhiteSpaces = definition->isCommentAfterWhiteSpaces();
|
||||
m_commentDefinition.singleLine = definition->singleLineComment();
|
||||
m_commentDefinition.multiLineStart = definition->multiLineCommentStart();
|
||||
m_commentDefinition.multiLineEnd = definition->multiLineCommentEnd();
|
||||
|
||||
setCodeFoldingSupported(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user