Skip to content

Commit

Permalink
Deduplicate Commenter implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
mattco98 committed Jan 21, 2024
1 parent 7258d05 commit 97d5354
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 35 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package me.mattco.serenityos.gml
package me.mattco.serenityos.common

import com.intellij.lang.Commenter

class GMLCommenter : Commenter {
class DSLCommenter : Commenter {
override fun getLineCommentPrefix() = "// "

override fun getBlockCommentPrefix() = null
Expand Down
15 changes: 0 additions & 15 deletions src/main/kotlin/me/mattco/serenityos/idl/IDLCommenter.kt

This file was deleted.

15 changes: 0 additions & 15 deletions src/main/kotlin/me/mattco/serenityos/ipc/IPCCommenter.kt

This file was deleted.

6 changes: 3 additions & 3 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/>
<lang.commenter
language="SerenityOS GML"
implementationClass="me.mattco.serenityos.gml.GMLCommenter"
implementationClass="me.mattco.serenityos.common.DSLCommenter"
/>
<lang.foldingBuilder
language="SerenityOS IDL"
Expand Down Expand Up @@ -76,7 +76,7 @@
/>
<lang.commenter
language="SerenityOS IDL"
implementationClass="me.mattco.serenityos.idl.IDLCommenter"
implementationClass="me.mattco.serenityos.common.DSLCommenter"
/>
<lang.findUsagesProvider
language="SerenityOS IDL"
Expand Down Expand Up @@ -130,7 +130,7 @@
/>
<lang.commenter
language="SerenityOS IPC"
implementationClass="me.mattco.serenityos.ipc.IPCCommenter"
implementationClass="me.mattco.serenityos.common.DSLCommenter"
/>
<annotator
language="SerenityOS IPC"
Expand Down

0 comments on commit 97d5354

Please sign in to comment.