From 60c915a9d35d8026bd2fc1a193b97b89cbf29621 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Wed, 9 Sep 2015 13:06:47 +0200 Subject: "annotation" is a modifer now, so don't render it the second time as a keyword --- src/Kotlin/KotlinLanguageService.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Kotlin/KotlinLanguageService.kt b/src/Kotlin/KotlinLanguageService.kt index 3efe29c3..a22ba8af 100644 --- a/src/Kotlin/KotlinLanguageService.kt +++ b/src/Kotlin/KotlinLanguageService.kt @@ -228,10 +228,10 @@ class KotlinLanguageService : LanguageService { 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") -- cgit