comment/uncomment actions for the jet.

This commit is contained in:
Maxim Shafirov
2010-12-19 17:52:35 +03:00
parent 622baf94d1
commit 32d5da5dc8
2 changed files with 38 additions and 0 deletions
+1
View File
@@ -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;
}
}