From e3f33962e34444935f9ae381212875a7b4956b54 Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Tue, 17 Oct 2023 09:23:50 +0200 Subject: [PATCH] CompilerExplorer: Fix highlighter for assembly Change-Id: Id58546d99232b19252c99da5018c1ce45a2e8dc5 Reviewed-by: David Schulz --- src/plugins/compilerexplorer/compilerexplorereditor.cpp | 4 ++-- 1 file 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 &sourceSett m_asmEditor = new AsmEditorWidget(undoStack); m_asmDocument = QSharedPointer(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);