-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable LSP structure view, implement commenter
- Loading branch information
Showing
3 changed files
with
36 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ plugins { | |
} | ||
|
||
group = "boo.fox" | ||
version = "1.3.5" | ||
version = "1.4.0" | ||
|
||
repositories { | ||
mavenCentral() | ||
|
26 changes: 26 additions & 0 deletions
26
src/main/kotlin/boo/fox/haskelllsp/language/HaskellCommenter.kt
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,26 @@ | ||
package boo.fox.haskelllsp.language | ||
|
||
import com.intellij.lang.Commenter | ||
|
||
class HaskellCommenter: Commenter { | ||
override fun getLineCommentPrefix(): String { | ||
return "--" | ||
} | ||
|
||
override fun getBlockCommentPrefix(): String { | ||
return "{-" | ||
} | ||
|
||
override fun getBlockCommentSuffix(): String { | ||
return "-}" | ||
} | ||
|
||
override fun getCommentedBlockCommentPrefix(): String { | ||
return "{-" | ||
} | ||
|
||
override fun getCommentedBlockCommentSuffix(): String { | ||
return "-}" | ||
} | ||
|
||
} |
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