"annotation" is a modifer now, so don't render it the second time as a keyword
diff --git a/src/Kotlin/KotlinLanguageService.kt b/src/Kotlin/KotlinLanguageService.kt
index 3efe29c..a22ba8a 100644
--- a/src/Kotlin/KotlinLanguageService.kt
+++ b/src/Kotlin/KotlinLanguageService.kt
@@ -228,10 +228,10 @@
renderModifiersForNode(node, renderMode)
renderAnnotationsForNode(node)
when (node.kind) {
- DocumentationNode.Kind.Class -> keyword("class ")
+ DocumentationNode.Kind.Class,
+ DocumentationNode.Kind.AnnotationClass -> keyword("class ")
DocumentationNode.Kind.Interface -> keyword("interface ")
DocumentationNode.Kind.Enum -> keyword("enum class ")
- DocumentationNode.Kind.AnnotationClass -> keyword("annotation class ")
DocumentationNode.Kind.EnumItem -> keyword("enum val ")
DocumentationNode.Kind.Object -> keyword("object ")
else -> throw IllegalArgumentException("Node $node is not a class-like object")