summaryrefslogtreecommitdiffstats
path: root/sd-plugin/src/main/java/org/intellij/sdk/language/SdCommenter.java
blob: b8ba47f0f14768dd31ff56a70ed328bf8adb762d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package org.intellij.sdk.language;

import com.intellij.lang.Commenter;
import org.jetbrains.annotations.Nullable;

/**
 * This class enables turning a line into a comment with "Code -> Comment with line comment"
 */
public class SdCommenter implements Commenter {
    
    @Nullable
    @Override
    public String getLineCommentPrefix() {
        return "#";
    }
    
    @Nullable
    @Override
    public String getBlockCommentPrefix() {
        return "";
    }
    
    @Nullable
    @Override
    public String getBlockCommentSuffix() {
        return null;
    }
    
    @Nullable
    @Override
    public String getCommentedBlockCommentPrefix() {
        return null;
    }
    
    @Nullable
    @Override
    public String getCommentedBlockCommentSuffix() {
        return null;
    }
    
}