comment/uncomment actions for the jet.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
<fileTypeFactory implementation="org.jetbrains.jet.lang.JetFileFactory"/>
|
||||
<lang.braceMatcher language="jet" implementationClass="org.jetbrains.jet.lang.JetPairMatcher"/>
|
||||
<lang.parserDefinition language="jet" implementationClass="org.jetbrains.jet.lang.parsing.JetParserDefinition"/>
|
||||
<lang.commenter language="jet" implementationClass="org.jetbrains.jet.plugin.JetCommenter"/>
|
||||
<annotator language="jet" implementationClass="org.jetbrains.jet.lang.annotations.SoftKeywordsAnnotator"/>
|
||||
</extensions>
|
||||
</idea-plugin>
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
package org.jetbrains.jet.plugin;
|
||||
|
||||
import com.intellij.lang.Commenter;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
* User: max
|
||||
* Date: 12/19/10
|
||||
* Time: 5:45 PM
|
||||
* To change this template use File | Settings | File Templates.
|
||||
*/
|
||||
public class JetCommenter implements Commenter {
|
||||
@Override
|
||||
public String getLineCommentPrefix() {
|
||||
return "//";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getBlockCommentPrefix() {
|
||||
return "/*";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getBlockCommentSuffix() {
|
||||
return "*/";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommentedBlockCommentPrefix() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommentedBlockCommentSuffix() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user