From 52ab5e1402b1cacddfae571c61f5c95ed56ca8c5 Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Fri, 31 May 2024 11:45:03 +0200 Subject: [PATCH] Add Commenter to enable (un)commenting --- .../intellijantimony/AntimonyCommenter.java | 36 +++++++++++++++++++ src/main/resources/META-INF/plugin.xml | 1 + 2 files changed, 37 insertions(+) create mode 100644 src/main/java/com/github/dweindl/intellijantimony/AntimonyCommenter.java diff --git a/src/main/java/com/github/dweindl/intellijantimony/AntimonyCommenter.java b/src/main/java/com/github/dweindl/intellijantimony/AntimonyCommenter.java new file mode 100644 index 0000000..aa19980 --- /dev/null +++ b/src/main/java/com/github/dweindl/intellijantimony/AntimonyCommenter.java @@ -0,0 +1,36 @@ +package com.github.dweindl.intellijantimony; + +import com.intellij.lang.Commenter; +import org.jetbrains.annotations.Nullable; + +public class AntimonyCommenter implements Commenter { + @Nullable + @Override + public String getLineCommentPrefix() { + return "#"; + } + + @Nullable + @Override + public String getBlockCommentPrefix() { + return "/*"; + } + + @Nullable + @Override + public String getBlockCommentSuffix() { + return "*/"; + } + + @Nullable + @Override + public String getCommentedBlockCommentPrefix() { + return null; + } + + @Nullable + @Override + public String getCommentedBlockCommentSuffix() { + return null; + } +} \ No newline at end of file diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index d861ca3..da591a0 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -25,6 +25,7 @@ +