Skip to content
Snippets Groups Projects
Commit 387b9169 authored by Johannes Mey's avatar Johannes Mey
Browse files

add commenter

parent 8953edcf
Branches
No related tags found
1 merge request!16Draft: Resolve "Commenter for Aspect Files"
......@@ -2,6 +2,7 @@
## [Unreleased]
### Added
- Commenter for aspect files.
### Changed
......
package org.jastadd.tooling.aspect;
import com.intellij.lang.Commenter;
import org.jetbrains.annotations.Nullable;
public class AspectCommenter implements Commenter {
@Nullable
@Override
public String getLineCommentPrefix() {
return "//";
}
@Nullable
@Override
public String getBlockCommentPrefix() {
return "/*";
}
@Nullable
@Override
public String getBlockCommentSuffix() {
return "*/";
}
@Nullable
@Override
public String getCommentedBlockCommentPrefix() {
return null;
}
@Nullable
@Override
public String getCommentedBlockCommentSuffix() {
return null;
}
}
......@@ -93,6 +93,9 @@
<lang.foldingBuilder language="JastAddAspect" implementationClass="org.jastadd.tooling.aspect.AspectFoldingBuilder"/>
<lang.psiStructureViewFactory language="JastAddAspect" implementationClass="org.jastadd.tooling.aspect.AspectStructureViewFactory"/>
<lang.commenter language="JastAddAspect" implementationClass="org.jastadd.tooling.aspect.AspectCommenter"/>
</extensions>
<actions>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment