forked from qt-creator/qt-creator
CompilerExplorer: Fix highlighter for assembly
Change-Id: Id58546d99232b19252c99da5018c1ce45a2e8dc5 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -284,9 +284,9 @@ CompilerWidget::CompilerWidget(const std::shared_ptr<SourceSettings> &sourceSett
|
|||||||
|
|
||||||
m_asmEditor = new AsmEditorWidget(undoStack);
|
m_asmEditor = new AsmEditorWidget(undoStack);
|
||||||
m_asmDocument = QSharedPointer<TextDocument>(new TextDocument);
|
m_asmDocument = QSharedPointer<TextDocument>(new TextDocument);
|
||||||
m_asmDocument->setFilePath("asm.asm");
|
|
||||||
m_asmEditor->setTextDocument(m_asmDocument);
|
m_asmEditor->setTextDocument(m_asmDocument);
|
||||||
m_asmEditor->configureGenericHighlighter(Utils::mimeTypeForName("text/x-asm"));
|
m_asmEditor->configureGenericHighlighter(
|
||||||
|
TextEditor::Highlighter::definitionForName("Intel x86 (NASM)"));
|
||||||
m_asmEditor->setReadOnly(true);
|
m_asmEditor->setReadOnly(true);
|
||||||
|
|
||||||
connect(m_asmEditor, &AsmEditorWidget::gotFocus, this, &CompilerWidget::gotFocus);
|
connect(m_asmEditor, &AsmEditorWidget::gotFocus, this, &CompilerWidget::gotFocus);
|
||||||
|
Reference in New Issue
Block a user