Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions src/main/java/io/protostuff/jetbrains/plugin/ProtoCommenter.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package io.protostuff.jetbrains.plugin;

import com.intellij.lang.Commenter;

/**
* @author Kostiantyn Shchepanovskyi
*/
public class ProtoCommenter implements Commenter {

public static final String LINE_COMMENT_PREFIX = "//";
public static final String BLOCK_COMMENT_PREFIX = "/*";
public static final String BLOCK_COMMENT_SUFFIX = "*/";

public String getLineCommentPrefix() {
return LINE_COMMENT_PREFIX;
}

public String getBlockCommentPrefix() {
return BLOCK_COMMENT_PREFIX;
}

public String getBlockCommentSuffix() {
return BLOCK_COMMENT_SUFFIX;
}

public String getCommentedBlockCommentPrefix() {
return null;
}

public String getCommentedBlockCommentSuffix() {
return null;
}
}
1 change: 1 addition & 0 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@

<colorSettingsPage implementation="io.protostuff.jetbrains.plugin.ProtoColorSettingsPage"/>

<lang.commenter language="PROTO" implementationClass="io.protostuff.jetbrains.plugin.ProtoCommenter"/>
</extensions>

<actions>
Expand Down