From b682f2b32716b6f3a60ee9b422041a358a36e86c Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Sun, 23 Apr 2017 09:53:30 +0200 Subject: Add (un)commenting --- plugins/haskell/haskelleditorfactory.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 +#include #include @@ -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); } -- cgit v1.2.3