aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/haskell/haskelleditorfactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/haskell/haskelleditorfactory.cpp')
-rw-r--r--plugins/haskell/haskelleditorfactory.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/haskell/haskelleditorfactory.cpp b/plugins/haskell/haskelleditorfactory.cpp
index 7d44cf5..704f7f4 100644
--- a/plugins/haskell/haskelleditorfactory.cpp
+++ b/plugins/haskell/haskelleditorfactory.cpp
@@ -26,6 +26,7 @@
#include "haskelleditorfactory.h"
#include <texteditor/textdocument.h>
+#include <texteditor/texteditoractionhandler.h>
#include <QCoreApplication>
@@ -39,8 +40,10 @@ HaskellEditorFactory::HaskellEditorFactory()
setId(C_HASKELLEDITOR_ID);
setDisplayName(QCoreApplication::translate("OpenWith::Editors", "Haskell Editor"));
addMimeType("text/x-haskell");
+ setEditorActionHandlers(TextEditor::TextEditorActionHandler::UnCommentSelection);
setDocumentCreator([] { return new TextEditor::TextDocument(C_HASKELLEDITOR_ID); });
+ setCommentDefinition(Utils::CommentDefinition("--", "{-", "-}"));
setParenthesesMatchingEnabled(true);
setMarksVisible(true);
}