aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/compilerexplorer
diff options
context:
space:
mode:
authorMarcus Tillmanns <marcus.tillmanns@qt.io>2023-10-17 09:23:50 +0200
committerMarcus Tillmanns <marcus.tillmanns@qt.io>2023-10-17 08:53:45 +0000
commite3f33962e34444935f9ae381212875a7b4956b54 (patch)
treeb8c35ee9287d833e3914d393e5454068741670ab /src/plugins/compilerexplorer
parent5b97cb375b9d5d9bcdcbca5bce9becfb0b3983c8 (diff)
CompilerExplorer: Fix highlighter for assembly
Change-Id: Id58546d99232b19252c99da5018c1ce45a2e8dc5 Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/compilerexplorer')
-rw-r--r--src/plugins/compilerexplorer/compilerexplorereditor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/compilerexplorer/compilerexplorereditor.cpp b/src/plugins/compilerexplorer/compilerexplorereditor.cpp
index 14abaaed0b1..2fcb4f8f073 100644
--- a/src/plugins/compilerexplorer/compilerexplorereditor.cpp
+++ b/src/plugins/compilerexplorer/compilerexplorereditor.cpp
@@ -284,9 +284,9 @@ CompilerWidget::CompilerWidget(const std::shared_ptr<SourceSettings> &sourceSett
m_asmEditor = new AsmEditorWidget(undoStack);
m_asmDocument = QSharedPointer<TextDocument>(new TextDocument);
- m_asmDocument->setFilePath("asm.asm");
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);
connect(m_asmEditor, &AsmEditorWidget::gotFocus, this, &CompilerWidget::gotFocus);