-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding comment line/block support for HXML files
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/main/java/com/intellij/plugins/haxe/ide/HxmlCommenter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.intellij.plugins.haxe.ide; | ||
|
||
import com.intellij.lang.Commenter; | ||
/** | ||
* @author: Fedor.Korotkov | ||
*/ | ||
public class HxmlCommenter implements Commenter { | ||
|
||
public static final String SINGLE_LINE_PREFIX = "#"; | ||
|
||
@Override | ||
public String getLineCommentPrefix() { | ||
return SINGLE_LINE_PREFIX; | ||
} | ||
|
||
@Override | ||
public String getBlockCommentPrefix() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getBlockCommentSuffix() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getCommentedBlockCommentPrefix() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getCommentedBlockCommentSuffix() { | ||
return null; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters