File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
java/io/protostuff/jetbrains/plugin Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ package io .protostuff .jetbrains .plugin ;
2+
3+ import com .intellij .lang .Commenter ;
4+
5+ /**
6+ * @author Kostiantyn Shchepanovskyi
7+ */
8+ public class ProtoCommenter implements Commenter {
9+
10+ public static final String LINE_COMMENT_PREFIX = "//" ;
11+ public static final String BLOCK_COMMENT_PREFIX = "/*" ;
12+ public static final String BLOCK_COMMENT_SUFFIX = "*/" ;
13+
14+ public String getLineCommentPrefix () {
15+ return LINE_COMMENT_PREFIX ;
16+ }
17+
18+ public String getBlockCommentPrefix () {
19+ return BLOCK_COMMENT_PREFIX ;
20+ }
21+
22+ public String getBlockCommentSuffix () {
23+ return BLOCK_COMMENT_SUFFIX ;
24+ }
25+
26+ public String getCommentedBlockCommentPrefix () {
27+ return null ;
28+ }
29+
30+ public String getCommentedBlockCommentSuffix () {
31+ return null ;
32+ }
33+ }
Original file line number Diff line number Diff line change 7777
7878 <colorSettingsPage implementation =" io.protostuff.jetbrains.plugin.ProtoColorSettingsPage" />
7979
80+ <lang .commenter language =" PROTO" implementationClass =" io.protostuff.jetbrains.plugin.ProtoCommenter" />
8081 </extensions >
8182
8283 <actions >
You can’t perform that action at this time.
0 commit comments