diff options
author | Eike Ziller <git@eikeziller.de> | 2017-04-23 09:53:30 +0200 |
---|---|---|
committer | Eike Ziller <git@eikeziller.de> | 2017-10-01 20:11:08 +0200 |
commit | b682f2b32716b6f3a60ee9b422041a358a36e86c (patch) | |
tree | d8e470c98b6fb08ae627cfccfbfee6a88a974c26 | |
parent | 7f7a95d2352a0cf913f0f12fe188e03b256a7b51 (diff) |
Add (un)commenting
-rw-r--r-- | plugins/haskell/haskelleditorfactory.cpp | 3 |
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); } |